]> git.ipfire.org Git - thirdparty/systemd.git/blame - .dir-locals.el
man: fix references to systemd.exec(5)
[thirdparty/systemd.git] / .dir-locals.el
CommitLineData
85f0c93a
ZJS
1; Sets emacs variables based on mode.
2; A list of (major-mode . ((var1 . value1) (var2 . value2)))
3; Mode can be nil, which gives default values.
4
c90ee834 5; Note that we set a line width of 109 for .c and XML files, but for everything
2eb169bd
LP
6; else (such as journal catalog files, unit files, README files) we stick to a
7; more conservative 79 characters.
8
9; NOTE: If you update this file make sure to update .vimrc and .editorconfig,
10; too.
11
c90ee834 12((c-mode . ((fill-column . 109)
2eb169bd 13 (c-basic-offset . 8)
e84750c9
LP
14 (eval . (c-set-offset 'substatement-open 0))
15 (eval . (c-set-offset 'statement-case-open 0))
16 (eval . (c-set-offset 'case-label 0))
17 (eval . (c-set-offset 'arglist-intro '++))
df3489ab
JS
18 (eval . (c-set-offset 'arglist-close 0))
19 (eval . (c-set-offset 'arglist-cont-nonempty '(c-lineup-gcc-asm-reg c-lineup-arglist)))))
2eb169bd 20 (nxml-mode . ((nxml-child-indent . 2)
c90ee834 21 (fill-column . 109)))
b884196c 22 (meson-mode . ((meson-indent-basic . 8)))
cc5549ca
ZJS
23 (sh-mode . ((sh-basic-offset . 4)
24 (sh-indentation . 4)))
5038df43
LP
25 (awk-mode . ((c-basic-offset . 8)))
26 (nil . ((indent-tabs-mode . nil)
27 (tab-width . 8)
28 (fill-column . 79))) )