summaryrefslogtreecommitdiff
path: root/.dir-locals.el
AgeCommit message (Collapse)AuthorFilesLines
2016-11-14dir-locals.el: Adds White Space supportAndres Gomez1-2/+7
Trailing white spaces will be now always highlighted, not just in prog-mode. Also, the White Space package, which is available since GNU Emacs 22, is loaded and activated locally in prog-mode. Additionally, using White Space variables, we set highlighting through faces on wrong indentation and the maximum length of a coding line. Notice that: - The highlighting for the characters beyond the set length of a coding line is not activated by default, only for wrong indentations. - If the White Space package is not available, errors on loading or activation are ignored. - If the White Space mode is not activated the set variables would not have any effect. v2: Removed too long lines trail highlighting, as suggested by Ilia Mirkin. Signed-off-by: Andres Gomez <agomez@igalia.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-02-03dir-locals.el: set case-label offset to 0Ilia Mirkin1-0/+1
While this is the default, private .emacs files might have it set to something else. No harm in forcing it to 0. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
2015-02-02dir-locals.el: Don't set variables for non-programming modesNeil Roberts1-1/+1
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>
2014-01-29dir-locals.el: Set indent-tabs-mode true for makefile-modeKristian Høgsberg1-0/+1
Makefiles need hard tabs, let's not make that harder than it needs to be. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
2012-07-11Add emacs setup for the docs/devinfo.html comment wrapping recommendation.Eric Anholt1-0/+1
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-06-21mesa: update the emacs indent filesZack Rusin1-0/+10
dirvars package has been replaced by built-in functionality of dir-locals. preserve the settings in the new infrastructure