]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
dir-locals.el: Add c-mode settings
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 5 Jul 2018 18:04:45 +0000 (11:04 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Mon, 9 Jul 2018 22:31:36 +0000 (15:31 -0700)
Add c-mode settings for the files in the src directory. Additionally,
make indent-tabs-mode global such that it also applies to the
.dir-locals.el file itself.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
.dir-locals.el

index 46961929fac999b29b08d38b7e03fc14c234c732..994103c63d392cfee4dbcf9e74919891a4951434 100644 (file)
@@ -1,4 +1,6 @@
 ((sh-mode . ((sh-basic-offset . 8)
             (sh-indentation . 8)
-            (fill-column . 80)
-            (indent-tabs-mode . t))))
+            (fill-column . 80)))
+ (c-mode .  ((c-basic-offset . 8)
+            (c-label-minimum-indentation . 0)))
+ (nil .     ((indent-tabs-mode . t))))