]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/commitdiff
Configure indenting in Emacs to be the same as in CCS
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Sep 2013 09:15:30 +0000 (11:15 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Sep 2013 09:16:08 +0000 (11:16 +0200)
CCS configuration defaults to tab width of 4. When opening a file in emacs
with the default configuration, the indenting is broken because emacs
uses tab width of 8.

.dir-locals.el [new file with mode: 0644]

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644 (file)
index 0000000..3f852b6
--- /dev/null
@@ -0,0 +1,5 @@
+((c-mode
+  (indent-tabs-mode . t)
+  (tab-width . 4)
+  (c-basic-offset . 4)
+  (c-file-style . "linux")))