2011-03-07 18:23:04 +00:00
|
|
|
; Sets emacs variables based on mode.
|
|
|
|
; A list of (major-mode . ((var1 . value1) (var2 . value2)))
|
|
|
|
; Mode can be nil, which gives default values.
|
|
|
|
|
2016-02-10 11:27:35 +00:00
|
|
|
; Note that we set a line width of 119 for .c and XML files, but for everything
|
|
|
|
; else (such as journal catalog files, unit files, README files) we stick to a
|
|
|
|
; more conservative 79 characters.
|
|
|
|
|
|
|
|
; NOTE: If you update this file make sure to update .vimrc and .editorconfig,
|
|
|
|
; too.
|
|
|
|
|
2011-03-07 18:23:04 +00:00
|
|
|
((nil . ((indent-tabs-mode . nil)
|
2016-01-07 23:24:06 +00:00
|
|
|
(tab-width . 8)
|
2016-02-10 11:27:35 +00:00
|
|
|
(fill-column . 79)))
|
|
|
|
(c-mode . ((fill-column . 119)
|
|
|
|
(c-basic-offset . 8)
|
2016-01-07 23:24:06 +00:00
|
|
|
(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 '++))
|
2016-01-20 23:03:08 +00:00
|
|
|
(eval . (c-set-offset 'arglist-close 0))))
|
2016-02-10 11:27:35 +00:00
|
|
|
(nxml-mode . ((nxml-child-indent . 2)
|
2017-04-17 23:25:00 +00:00
|
|
|
(fill-column . 119)))
|
2017-04-24 23:40:02 +00:00
|
|
|
(meson-mode . ((meson-indent-basic . 8)))
|
|
|
|
(sh-mode . ((sh-basic-offset . 8)
|
|
|
|
(sh-indentation . 8)))
|
|
|
|
(awk-mode . ((c-basic-offset . 8))))
|