summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorJörg Sommer <joerg@jo-so.de>2019-02-28 15:53:40 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-02-28 16:50:53 +0100
commitdf3489ab1b60c15a3e216af8fefe24ac4409fb97 (patch)
tree43225d38e6f6ed345830eda6643e351cb6ecf565 /.dir-locals.el
parent154c83e1b9f0c4d43c40a27b37353fd9d597e5bc (diff)
downloadsystemd-df3489ab1b60c15a3e216af8fefe24ac4409fb97.tar.gz
Better C code formatting of arguments in Emacs
In [PR#11696][1] it came up that the formatting of continued arguments should follow the default Emacs style. To ensure this happens when someone has changed his setting in her private config, the value should be set by *dir-locals.el*. [1]: https://github.com/systemd/systemd/pull/11696#pullrequestreview-205463987
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 676d755231..815afe172a 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -15,7 +15,8 @@
(eval . (c-set-offset 'statement-case-open 0))
(eval . (c-set-offset 'case-label 0))
(eval . (c-set-offset 'arglist-intro '++))
- (eval . (c-set-offset 'arglist-close 0))))
+ (eval . (c-set-offset 'arglist-close 0))
+ (eval . (c-set-offset 'arglist-cont-nonempty '(c-lineup-gcc-asm-reg c-lineup-arglist)))))
(nxml-mode . ((nxml-child-indent . 2)
(fill-column . 109)))
(meson-mode . ((meson-indent-basic . 8)))