From 740a77e2e43ec75dbc2947821772ad02cd181c91 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Tue, 13 Dec 2016 11:10:07 +0000 Subject: Add project-wide Emacs settings file Add a .dir-locals.el file, which applies indentation-related settings when editing any file in the project with Emacs. --- .dir-locals.el | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000000..17bf4b636c --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,9 @@ +;; Project-wide Emacs settings +( + ;; `nil' settings apply to all language modes + (nil + ;; Use only spaces for indentation + (indent-tabs-mode . nil)) + (c-mode + ;; In C code, indentation is four spaces + (c-basic-offset . 4))) -- cgit v1.2.3