From 1fc2f712f7ebc11bea8c0ae521d70be57975021e Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Sat, 28 May 2016 02:45:54 +0200 Subject: [PATCH] Add indentation settings for Emacs Allow Emacs users to get indentation behavior matching the codebase regardless of their default settings. --- .dir-locals.el | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..8e21964 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,7 @@ +;; Project-wide indentation settings for Emacs: use tabs, 8-chars wide, and fill at 92 +;; columns. The indentation offset for Shell and C modes is one tab. +((nil . ((indent-tabs-mode . t) + (tab-width . 8) + (fill-column . 92))) + (c-mode . ((c-basic-offset . 8))) + (sh-mode . ((sh-basic-offset . 8))))