Click to See Complete Forum and Search --> : Setting tabstop width for Emacs in C/C++ mode


lsibn
08-19-2001, 02:17 AM
How's it done? I tried google, I tried the GNU documentation, and I can't find what I'm looking for. OR I can find it, but I don't recognize it.

The problem is that the default tabstop for C/C++ is only TWO characters. This is simply not enough, given my extreme myopia, and I would like to correct the "corrected" tabstop by re-adjusting it back to 8 characters wide.

Stupid emacs people... Think just because THEY like tabstop to be 2 characters wide (which in itself leads to eyestrain for me), that the WHOLE world should throw away what THEIR idea of a tab is, and assume the new definition. I guess they're kind of like microsoft there. But I'm ranting, and I only want to know how to force C/C++ mode to accept my specified tab stop widths.

Thanks@ :)

xDAVIDx
08-24-2001, 07:57 PM
if you don't have a .emacs file in your ~/
then use a text editor to make one.

insert this line:

(setq default-tab-width xx)

where xx is a number of spaces.

see: http://www.gnu.org/software/emacs/