dir-locals.el: Don't set variables for non-programming modes
authorNeil Roberts <neil@linux.intel.com>
Sat, 31 Jan 2015 16:45:09 +0000 (17:45 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 2 Feb 2015 12:02:55 +0000 (12:02 +0000)
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 <michel.daenzer@amd.com>
.dir-locals.el
src/gallium/drivers/freedreno/.dir-locals.el
src/gallium/drivers/r600/.dir-locals.el
src/gallium/drivers/radeon/.dir-locals.el
src/gallium/drivers/radeonsi/.dir-locals.el
src/gallium/drivers/vc4/.dir-locals.el
src/gallium/drivers/vc4/kernel/.dir-locals.el
src/gallium/winsys/radeon/.dir-locals.el
src/mesa/drivers/dri/nouveau/.dir-locals.el

index 04a1a2c..d95eb48 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . nil)
   (tab-width . 8)
   (c-basic-offset . 3)
index c26578b..aa20d49 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . true)
   (tab-width . 4)
   (c-basic-offset . 4)
index 8be6a30..4e35c12 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . true)
   (tab-width . 8)
   (c-basic-offset . 8)
index 8be6a30..4e35c12 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . true)
   (tab-width . 8)
   (c-basic-offset . 8)
index 8be6a30..4e35c12 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . true)
   (tab-width . 8)
   (c-basic-offset . 8)
index ed10dc2..ac94242 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . nil)
   (tab-width . 8)
   (c-basic-offset . 8)
index 2e58e90..49403de 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . t)
   (tab-width . 8)
   (c-basic-offset . 8)
index 0e937bb..d5f0f04 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . nil)
   (tab-width . 8)
   (c-basic-offset . 4)
index 29735e8..774f023 100644 (file)
@@ -1,4 +1,4 @@
-((nil
+((prog-mode
   (indent-tabs-mode . true)
   (tab-width . 8)
   (c-basic-offset . 8)