[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Add a separate mode for .dir-locals.el

From: Clément Pit-Claudel
Subject: Add a separate mode for .dir-locals.el
Date: Wed, 16 Oct 2019 22:07:58 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hi all,

.dir-locals.el files are currently opened in emacs-lisp-mode, but they are not 
proper Emacs Lisp files; as a result, Flymake generates incorrect diagnostics, 
and I don't know of an easy way to customize Emacs specifically for these files 
(there's is no hook that runs every time a dir-locals file is opened).  We've 
had a similar problem for a while in Flycheck.

The attached patch creates a trivial dir-locals-mode, derived from 
emacs-lisp-mode, and removes Flymake backends in that mode.


Attachment: 0001-Add-a-separate-mode-for-.dir-locals.el-files.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]