summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2015-01-31 17:45:09 +0100
committerNeil Roberts <[email protected]>2015-02-02 12:02:55 +0000
commitaf8fd694d4946493553aac310cc1ce5fa1f765e5 (patch)
treec9c693dd785e52947430352a8f8f88d9d4a91754 /src/gallium/drivers/vc4
parent68155e5a3699271b27adbe52968a9d5f8c84b0e6 (diff)
dir-locals.el: Don't set variables for non-programming modes
This limits the style changes to modes inherited from prog-mode. The main reason to do this is to avoid setting fill-column for people using Emacs to edit commit messages because 78 characters is too many to make it wrap properly in git log. Note that makefile-mode also inherits from prog-mode so the fill column should continue to apply there. v2: Apply to all the .dir-locals.el files, not just the one in the root directory. Acked-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/.dir-locals.el2
-rw-r--r--src/gallium/drivers/vc4/kernel/.dir-locals.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/.dir-locals.el b/src/gallium/drivers/vc4/.dir-locals.el
index ed10dc2d7fe..ac94242d70f 100644
--- a/src/gallium/drivers/vc4/.dir-locals.el
+++ b/src/gallium/drivers/vc4/.dir-locals.el
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
(indent-tabs-mode . nil)
(tab-width . 8)
(c-basic-offset . 8)
diff --git a/src/gallium/drivers/vc4/kernel/.dir-locals.el b/src/gallium/drivers/vc4/kernel/.dir-locals.el
index 2e58e90f311..49403de2468 100644
--- a/src/gallium/drivers/vc4/kernel/.dir-locals.el
+++ b/src/gallium/drivers/vc4/kernel/.dir-locals.el
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
(indent-tabs-mode . t)
(tab-width . 8)
(c-basic-offset . 8)