diff mbox

[blktests,v3,1/6] dir-locals.el: Add c-mode settings

Message ID 20180709225643.10537-2-bart.vanassche@wdc.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche July 9, 2018, 10:56 p.m. UTC
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 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Johannes Thumshirn July 11, 2018, 7:32 a.m. UTC | #1
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
diff mbox

Patch

diff --git a/.dir-locals.el b/.dir-locals.el
index 46961929fac9..994103c63d39 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -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))))