aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-28 11:12:04 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-28 11:12:04 +0100
commitca6d287b338d30071bec4e4cd20d9a4c2577bf49 (patch)
treeb2073a06f6428a7ed224f9fbd8d6dd20d11d61e1
parent7899fc959d0d35ee5718fd206d86f8464dd551eb (diff)
Add .dir-locals.el for Emacs
-rw-r--r--.dir-locals.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 000000000..2d1117f4b
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,16 @@
+((c++-mode . (
+ (c-file-style . "k&r")
+ (c-basic-offset . 4)
+ (indent-tabs-mode . nil)
+ (tab-width . 4)
+ (show-trailing-whitespace . t)
+ (indicate-empty-lines . t)
+ (eval . (c-set-offset 'innamespace 0))
+ (eval . (c-set-offset 'defun-open 0))
+ (eval . (c-set-offset 'inline-open 0))
+ (eval . (c-set-offset 'arglist-intro '+))
+ (eval . (c-set-offset 'arglist-cont 0))
+ (eval . (c-set-offset 'arglist-cont-nonempty '+))
+ (eval . (c-set-offset 'substatement-open 0))
+ (eval . (c-set-offset 'access-label '-))
+ )))