]>
Commit | Line | Data |
---|---|---|
fb183854 MP |
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 | ||
4c89c718 MP |
5 | ; Note that we set a line width of 119 for .c and XML files, but for everything |
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 | ||
fb183854 | 12 | ((nil . ((indent-tabs-mode . nil) |
4c89c718 MP |
13 | (tab-width . 8) |
14 | (fill-column . 79))) | |
15 | (c-mode . ((fill-column . 119) | |
16 | (c-basic-offset . 8) | |
17 | (eval . (c-set-offset 'substatement-open 0)) | |
18 | (eval . (c-set-offset 'statement-case-open 0)) | |
19 | (eval . (c-set-offset 'case-label 0)) | |
20 | (eval . (c-set-offset 'arglist-intro '++)) | |
21 | (eval . (c-set-offset 'arglist-close 0)))) | |
22 | (nxml-mode . ((nxml-child-indent . 2) | |
23 | (fill-column . 119)))) |