]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
editors: specify fill column
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Jan 2016 23:24:06 +0000 (00:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Jan 2016 18:39:59 +0000 (19:39 +0100)
Let's be a bit more precise with the editor configuration and specify a higher fill column of 119. This isn't as emacs'
default of 70, but also not particularly high on today's screens.

While we are at it, also set a couple of other emacs C coding style variables.

.dir-locals.el
.vimrc

index 9d9f8cd178c96e16ded975a09045d09e0d5b2f19..eee106213b7049c9be95f5476a85435c16ff64b8 100644 (file)
@@ -3,5 +3,11 @@
 ; Mode can be nil, which gives default values.
 
 ((nil . ((indent-tabs-mode . nil)
-         (tab-width . 8)))
-)
+         (tab-width . 8)
+         (fill-column . 119)))
+ (c-mode . ((c-basic-offset . 8)
+            (eval . (c-set-offset 'substatement-open 0))
+            (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)))))
diff --git a/.vimrc b/.vimrc
index d8020f340469889cca4773ab97c7e1e009798453..b864268cd1a22f6903a96220e4d8ba872795c7a8 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -7,3 +7,4 @@ set tabstop=8
 set shiftwidth=8
 set expandtab
 set makeprg=GCC_COLORS=\ make
+set tw=119