aboutsummaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-03-28 14:11:18 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-03-29 13:18:17 -0700
commit931736a8b42a6e15a05e3a869a7ed5214750cbd9 (patch)
tree8d8384090adfa77da4d4d071f1e846ff508f0350 /.dir-locals.el
parentf00795452566901e80d1094e81f9c26461b2a9cd (diff)
Added .dir-locals.el to customize emacs settings
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el25
1 files changed, 25 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..51d5246
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,25 @@
+((nil . ((indent-tabs-mode . t)
+ (tab-width . 8)
+ (eval . (add-hook 'before-save-hook
+ 'whitespace-cleanup nil t))))
+ (c-mode . ((c-file-style . "stroustrup")
+ (c-basic-offset . 8)
+ (c-file-offsets .
+ ((block-close . 0)
+ (brace-list-close . 0)
+ (brace-list-entry . 0)
+ (brace-list-intro . +)
+ (case-label . 0)
+ (class-close . 0)
+ (defun-block-intro . +)
+ (defun-close . 0)
+ (defun-open . 0)
+ (else-clause . 0)
+ (inclass . +)
+ (label . 0)
+ (statement . 0)
+ (statement-block-intro . +)
+ (statement-case-intro . +)
+ (statement-cont . +)
+ (substatement . +)
+ (topmost-intro . 0))))))