summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..ad047f7
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,10 @@
+;;; This file is used by Emacs to configure it's code editing modes to correctly
+;;; indent cbootimage style source code.
+
+((nil . ((indent-tabs-mode . t)
+ (tab-width . 4)
+ (fill-column . 80)))
+ (c-mode . ((c-tab-always-indent . nil)
+ (c-basic-offset . 4)))
+ (c++-mode . ((c-tab-always-indent . nil)
+ (c-basic-offset . 4))))