chiark / gitweb /
el/dot-emacs.el: Split out a `mdw-trustonic-basic-c' style.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 19 May 2020 10:51:58 +0000 (11:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 19 May 2020 10:51:58 +0000 (11:51 +0100)
Some parts of the codebase have a more sensible style where arguments
are aligned properly.

el/dot-emacs.el

index 5968944fe5f38ada494ebae0a5b6b27bcf0163ef..50ffcfa25477e7a682ac611fee2cec73b0dfd8a0 100644 (file)
@@ -2036,15 +2036,17 @@                    (defun-open . (add 0 c-indent-one-line-block))
                   (statement-cont . +)
                   (statement-case-intro . +)))
 
-(mdw-define-c-style mdw-trustonic-c (mdw-c)
+(mdw-define-c-style mdw-trustonic-basic-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 (arglist-cont-nonempty . mdw-c-indent-arglist-nested)
-                  (access-label . -2)))
+  (c-offsets-alist (access-label . -2)))
+
+(mdw-define-c-style mdw-trustonic-c (mdw-trustonic-basic-c)
+  (c-offsets-alist (arglist-cont-nonempty . mdw-c-indent-arglist-nested)))
 
 (defun mdw-set-default-c-style (modes style)
   "Update the default CC Mode style for MODES to be STYLE.