From: Anders Bakken Date: Mon, 21 Dec 2015 18:12:35 +0000 (-0800) Subject: Add .dir-locals and set c-basic-offset to 2. X-Git-Tag: curl-7_47_0~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04cb90948e3aefc9076d4767d8fe1f262d0d5bb7;p=thirdparty%2Fcurl.git 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 --- diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000000..ed91b128c5 --- /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) + )) + )