about summary refs log tree commit diff
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 000000000000..8adc4f1d2032
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,7 @@
+((nil .
+      ((indent-tabs-mode . nil)
+       (show-trailing-whitespace . t)))
+ (c-mode .
+         ((mode . c++)))
+ (c++-mode .
+          ((eval add-hook 'before-save-hook #'clang-format-buffer nil t))))