Skip to content

Commit af8fd69

Browse files
committed
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]>
1 parent 68155e5 commit af8fd69

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . nil)
33
(tab-width . 8)
44
(c-basic-offset . 3)

src/gallium/drivers/freedreno/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . true)
33
(tab-width . 4)
44
(c-basic-offset . 4)

src/gallium/drivers/r600/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . true)
33
(tab-width . 8)
44
(c-basic-offset . 8)

src/gallium/drivers/radeon/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . true)
33
(tab-width . 8)
44
(c-basic-offset . 8)

src/gallium/drivers/radeonsi/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . true)
33
(tab-width . 8)
44
(c-basic-offset . 8)

src/gallium/drivers/vc4/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . nil)
33
(tab-width . 8)
44
(c-basic-offset . 8)

src/gallium/drivers/vc4/kernel/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . t)
33
(tab-width . 8)
44
(c-basic-offset . 8)

src/gallium/winsys/radeon/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . nil)
33
(tab-width . 8)
44
(c-basic-offset . 4)

src/mesa/drivers/dri/nouveau/.dir-locals.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
((nil
1+
((prog-mode
22
(indent-tabs-mode . true)
33
(tab-width . 8)
44
(c-basic-offset . 8)

0 commit comments

Comments
 (0)