[Mesa-dev] [PATCH] radv: add .dir-locals.el to make radv code more readable in Emacs
Damien Grassart
damien at grassart.com
Sun Mar 5 23:33:57 UTC 2017
The current root .dir-locals.el doesn't match the radv coding style,
causing Emacs to highlight nearly every line and edits to use 3-space
indentation. This sets the c-file-style to "linux" since that appears
to be the radv coding style.
Signed-off-by: Damien Grassart <damien at grassart.com>
---
src/amd/vulkan/.dir-locals.el | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 src/amd/vulkan/.dir-locals.el
diff --git a/src/amd/vulkan/.dir-locals.el b/src/amd/vulkan/.dir-locals.el
new file mode 100644
index 0000000000..ca6198e50a
--- /dev/null
+++ b/src/amd/vulkan/.dir-locals.el
@@ -0,0 +1,2 @@
+((nil . ((show-trailing-whitespace . t)))
+ (c-mode (c-file-style . "linux")))
--
2.12.0
More information about the mesa-dev
mailing list