[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.
Thoughts?
Clément.
0001-Add-a-separate-mode-for-.dir-locals.el-files.patch
Description: Text Data
- Add a separate mode for .dir-locals.el,
Clément Pit-Claudel <=
- Re: Add a separate mode for .dir-locals.el, Lars Ingebrigtsen, 2019/10/16
- Re: Add a separate mode for .dir-locals.el, Eli Zaretskii, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Clément Pit-Claudel, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, João Távora, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Eli Zaretskii, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Clément Pit-Claudel, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Yuri Khan, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Clément Pit-Claudel, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, Amin Bandali, 2019/10/17
- Re: Add a separate mode for .dir-locals.el, João Távora, 2019/10/17