mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-04 22:07:49 +00:00
af8fd694d4
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>
13 lines
271 B
EmacsLisp
13 lines
271 B
EmacsLisp
((prog-mode
|
|
(indent-tabs-mode . nil)
|
|
(tab-width . 8)
|
|
(c-basic-offset . 3)
|
|
(c-file-style . "stroustrup")
|
|
(fill-column . 78)
|
|
(eval . (progn
|
|
(c-set-offset 'innamespace '0)
|
|
(c-set-offset 'inline-open '0)))
|
|
)
|
|
(makefile-mode (indent-tabs-mode . t))
|
|
)
|