You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
1.1 KiB

  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. ; Note that we set a line width of 119 for .c and XML files, but for everything
  5. ; else (such as journal catalog files, unit files, README files) we stick to a
  6. ; more conservative 79 characters.
  7. ; NOTE: If you update this file make sure to update .vimrc and .editorconfig,
  8. ; too.
  9. ((nil . ((indent-tabs-mode . nil)
  10. (tab-width . 8)
  11. (fill-column . 79)))
  12. (c-mode . ((fill-column . 119)
  13. (c-basic-offset . 8)
  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 '++))
  18. (eval . (c-set-offset 'arglist-close 0))))
  19. (nxml-mode . ((nxml-child-indent . 2)
  20. (fill-column . 119)))
  21. (meson-mode . ((meson-indent-basic . 8)))
  22. (sh-mode . ((sh-basic-offset . 8)
  23. (sh-indentation . 8)))
  24. (awk-mode . ((c-basic-offset . 8))))