Browse Source

Add a .dir-locals,el for configuring emacs for this project

Hartmut Goebel 5 years ago
parent
commit
0cc6cafb51
1 changed files with 16 additions and 0 deletions
  1. 16 0
      .dir-locals.el

+ 16 - 0
.dir-locals.el

@@ -0,0 +1,16 @@
+;; Per-directory local variables for GNU Emacs 23 and later.
+
+((nil
+  . ((fill-column . 78)
+     (tab-width   .  4)
+     (indent-tabs-mode . nil)
+     (show-trailing-whitespace . t)
+     (c-basic-offset . 2)
+     (ispell-check-comments . exclusive)
+     (ispell-local-dictionary . "american")
+     (safe-local-variable-values
+	  '((c-default-style . "gnu")
+	    (sentence-end-double-space . f)
+        (eval add-hook 'prog-mode-hook #'flyspell-prog-mode)
+        (flyspell-issue-message-flag . f) ; avoid messages for every word
+        )))))