aboutsummaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorAnders Bakken <agbakken@gmail.com>2015-12-21 10:12:35 -0800
committerDaniel Stenberg <daniel@haxx.se>2015-12-23 10:16:14 +0100
commit04cb90948e3aefc9076d4767d8fe1f262d0d5bb7 (patch)
tree080149c89e810c64625a7977741df79bf2949b75 /.dir-locals.el
parentc208c783f5eefa48b0cacb15d848e1e310dc2ea8 (diff)
Add .dir-locals and set c-basic-offset to 2.
This makes it easier for emacs users to automatically get the right 2-space indentation when they edit curl source files. c++-mode is in there as well because Emacs can't easily know if something is a C or C++ header. Closes #574
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 000000000..ed91b128c
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,10 @@
+;;; Directory Local Variables
+;;; See Info node `(emacs) Directory Variables' for more information.
+
+((nil . ((indent-tabs-mode . nil)
+ (show-trailing-whitespace . t)))
+ (c-mode . ((c-basic-offset . 2)
+ ))
+ (c++-mode . ((c-basic-offset . 2)
+ ))
+ )