changeset 27:9b572ed5781b

sync dir-locals.el
author ng0@n0.is
date Fri, 03 May 2019 18:10:07 +0000
parents 43730d151622
children 14d4523ac29e
files .dir-locals.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.dir-locals.el	Fri May 03 18:09:21 2019 +0000
+++ b/.dir-locals.el	Fri May 03 18:10:07 2019 +0000
@@ -3,7 +3,8 @@
          (fill-column . 80)))
  ;; Warn about spaces used for indentation:
  (haskell-mode . ((eval . (highlight-regexp "^ *"))))
- (c-mode . ((c-file-style . "BSD")))
+ (c-mode . ((c-file-style . "BSD")
+	    (eval add-hook 'before-save-hook #'clang-format-buffer nil t)))
  (java-mode . ((c-file-style . "BSD")))
  ("src/imported"
   . ((nil . ((change-log-default-name . "ChangeLog.local"))))))