chiark / gitweb /
el/dot-emacs.el: Rename the Trustonic C styles.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 20 May 2021 17:46:06 +0000 (18:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 20 May 2021 17:46:06 +0000 (18:46 +0100)
It seems that the bizarre indentation of argument lists was a perversion
specific to Alec.  Don't do this by default any more.  Rename the
`basic' version to be `mdw-trustonic-c', and make the strange perversion
be `mdw-trustonic-alec-c'.

el/dot-emacs.el

index c1beb947de9f414598c6ddf130e39073d6691b63..705143ef5be5bb788074be2948ef2be65bec4203 100644 (file)
@@ -2130,16 +2130,16 @@                    (defun-open . (add 0 c-indent-one-line-block))
                   (statement-cont . +)
                   (statement-case-intro . +)))
 
-(mdw-define-c-style mdw-trustonic-basic-c (mdw-c)
+(mdw-define-c-style mdw-trustonic-c (mdw-c)
   (c-basic-offset . 4)
-  (comment-column . 0)
   (c-indent-comment-alist (anchored-comment . (column . 0))
                          (end-block . (space . 1))
                          (cpp-end-block . (space . 1))
                          (other . (space . 1)))
   (c-offsets-alist (access-label . -2)))
 
-(mdw-define-c-style mdw-trustonic-c (mdw-trustonic-basic-c)
+(mdw-define-c-style mdw-trustonic-alec-c (mdw-trustonic-c)
+  (comment-column . 0)
   (c-offsets-alist (arglist-cont-nonempty . mdw-c-indent-arglist-nested)))
 
 (defun mdw-set-default-c-style (modes style)