[mythtv] OT: Emacs indentation

Matt Zimmerman mdz at debian.org
Tue Nov 25 14:49:58 EST 2003


On Sun, Nov 23, 2003 at 09:17:40AM -0500, 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...

(c-add-style "myth" '((c-basic-offset . 4)
                      (c-comment-only-line-offset . 0)
                      (c-offsets-alist . ((statement-block-intro . +)
                                          (knr-argdecl-intro . 0)
                                          (substatement-open . 0)
                                          (label . 0)
                                          (statement-cont . +)
                                          ))
                      ))

-- 
 - mdz


More information about the mythtv-dev mailing list