From 5bc9ff371dfc02c786071cbc0f3116251f34f2f5 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Mon, 19 Jun 2017 15:18:11 -0700 Subject: Added .dir-locals.el to setup correct indentation in Emacs --- .dir-locals.el | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..a9d100f --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,25 @@ +((python-mode . ((indent-tabs-mode . nil))) + (autoconf-mode . ((indent-tabs-mode . t))) + (c-mode . ((c-file-style . "stroustrup") + (indent-tabs-mode . t) + (tab-width . 8) + (c-basic-offset . 8) + (c-file-offsets . + ((block-close . 0) + (brace-list-close . 0) + (brace-list-entry . 0) + (brace-list-intro . +) + (case-label . 0) + (class-close . 0) + (defun-block-intro . +) + (defun-close . 0) + (defun-open . 0) + (else-clause . 0) + (inclass . +) + (label . 0) + (statement . 0) + (statement-block-intro . +) + (statement-case-intro . +) + (statement-cont . +) + (substatement . +) + (topmost-intro . 0)))))) -- cgit v1.2.3