Prefered CC mode setup?

Werner Koch wk at gnupg.org
Mon Apr 10 09:58:54 CEST 2006


On Sun, 9 Apr 2006 17:57:09 -0400, Anthony Carrico said:

> Could one of the GnuPG developers (who uses emacs) please post the
> recommended CC mode settings? I think I'm in "gnu" mode and it doesn't

Depends.  I used to use some kind of K&R but switched to gnu mode
years ago.  So in general gnu mode is fine and we truy to convert
existing code but that nmakes only sense for large changes - otherwise
a diff gets pretty meanigless.



Shalom-Salam,

   Werner


p.s 
; That is what I am using for old code
(c-add-style "dd9jn" 
  '((c-basic-offset . 4)
    (c-comment-only-line-offset . (0 . 0))
    (c-hanging-braces-alist . ((brace-list-open)
			       (substatement-open after)
                               (block-close . c-snug-do-while)))
    (c-offsets-alist . ((statement-block-intro . +)
                        (knr-argdecl-intro . 5)
                        (substatement-open . +)
                        (label . /)
                        (case-label . *)
                        (statement-case-intro . *)
                        (statement-case-open . *)
                        (substatement-open . +)
                        (statement-cont . +)
                        (arglist-intro . c-lineup-arglist-intro-ater-paren)
                        (arglist-close . c-lineup-arglist)))
    (c-special-indent-hook . c-gnu-impose-minimum)
    (c-comment-continuation-stars . " * ")) )




More information about the Gnupg-devel mailing list