From 04cb90948e3aefc9076d4767d8fe1f262d0d5bb7 Mon Sep 17 00:00:00 2001 From: Anders Bakken Date: Mon, 21 Dec 2015 10:12:35 -0800 Subject: [PATCH] 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 --- .dir-locals.el | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .dir-locals.el 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) + )) + )