]> granicus.if.org Git - curl/commitdiff
Add .dir-locals and set c-basic-offset to 2.
authorAnders Bakken <agbakken@gmail.com>
Mon, 21 Dec 2015 18:12:35 +0000 (10:12 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Dec 2015 09:16:14 +0000 (10:16 +0100)
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

.dir-locals.el [new file with mode: 0644]

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644 (file)
index 0000000..ed91b12
--- /dev/null
@@ -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)
+              ))
+ )