[mythtv] OT: Emacs indentation

Gregory McLean gregm at gxsnmp.org
Sun Nov 23 09:43:55 EST 2003


J Donavan Stanley wrote:
> Can anyone point me to the correct setting to modify for the indentation
> while in C++ mode?  Emacs insists on only indenting by 2 characters
> which is too small.  I've checked every setting that matches "indent"
> and they're all over 2...
> 
http://www.desy.de/user/projects/C++/EmacsMode.txt has all the gory 
details...

However.
/* -*- Mode: C++; c-basic-offset: 4 -*- */

Stuck in the top of the file will indent by 4.

(setq c-basic-offset 4) in your .emacs should accomplish the same thing.


Greg



More information about the mythtv-dev mailing list