aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-01-10 14:53:43 +0100
committerDan Gudmundsson <[email protected]>2017-01-11 11:54:49 +0100
commit4478d8afe8c728f44b47d3582a270423cd7fc07d (patch)
tree011784cad4b94b4f7a94faf1b6e2fd591b238632
parent8362491325db87bd7d561399f8ef8c849df22d33 (diff)
downloadotp-4478d8afe8c728f44b47d3582a270423cd7fc07d.tar.gz
otp-4478d8afe8c728f44b47d3582a270423cd7fc07d.tar.bz2
otp-4478d8afe8c728f44b47d3582a270423cd7fc07d.zip
Do not force space/tab indent-tabs-mode for all file types
Could not edit makefiles.
-rw-r--r--.dir-locals.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 17bf4b636c..2b8f690c8d 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,9 +1,14 @@
;; Project-wide Emacs settings
(
- ;; `nil' settings apply to all language modes
- (nil
- ;; Use only spaces for indentation
- (indent-tabs-mode . nil))
+ (erlang-mode (indent-tabs-mode . nil))
+ (autoconf-mode (indent-tabs-mode . nil))
+ (java-mode (indent-tabs-mode . nil))
+ (perl-mode (indent-tabs-mode . nil))
+ (xml-mode (indent-tabs-mode . nil))
+ ;; In C code indentation is 4 spaces and in C++ 2 spaces
+ (c++-mode
+ (indent-tabs-mode . nil)
+ (c-basic-offset . 2))
(c-mode
- ;; In C code, indentation is four spaces
+ (indent-tabs-mode . nil)
(c-basic-offset . 4)))