From 813645b1fc81e788d9938d7a8e1716cde54b7d0b Mon Sep 17 00:00:00 2001 From: Chris Smowton Date: Mon, 16 Jan 2017 17:29:26 +0000 Subject: [PATCH] Add emacs config This sets Linux-style C indenting (cf. GNU-style default; AFAIK editorconfig cannot say this) and sets indent to 2-spaces no-tabs in case you don't have the editorconfig plugin installed --- src/.dir-locals.el | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/.dir-locals.el diff --git a/src/.dir-locals.el b/src/.dir-locals.el new file mode 100644 index 00000000000..b03f85c8e5d --- /dev/null +++ b/src/.dir-locals.el @@ -0,0 +1,4 @@ +((c-mode . ((indent-tabs-mode . nil))) + (c++-mode . ((indent-tabs-mode . nil))) + (nil . ((c-file-style . "linux") + (c-basic-offset . 2))))