diff options
-rw-r--r-- | .dir-locals.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index c6dd4df..ae7e990 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -9,15 +9,18 @@ ;; ;; For more information see (info "(emacs) Directory Variables") -;; Basic settings. -((c-mode ;; C files +( + ;; C files. + (c-mode (c-basic-offset . 2) ;; 2 spaces of indentation (c-file-style . "gnu")) ;; GNU style for braces - (makefile-mode ;; Makefiles + ;; Makefiles. + (makefile-mode (indent-tabs-mode . t)) ;; Real TABs are important in makefiles -(nil ;; All other files. + ;; All other files (this has to be in the end). + (nil (indent-tabs-mode . nil) ;; No tabs as indentation (fill-column . 75)) ;; 75-character wide lines - ) +) |