|
From: | Dmitry Gutov |
Subject: | Re: Add a separate mode for .dir-locals.el |
Date: | Thu, 17 Oct 2019 18:12:47 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 17.10.2019 17:00, João Távora wrote:
BTW, and on a tangent, a derived dir-locals-mode isn't the bestoption. In OO, a derivation that _removes_functionality is a no-no,it breaks "is a". A better option would be to have a base `lisp-prog-mode` and hen derive emacs-lisp-mode from it. But that is maybe impractical for other reasons and not justified by this case.
The lisp-mode-variables function does that job, more or less.So one can just copy the emacs-lisp-mode definition, rename it to dir-local-mode and remove the unnecessary stuff (which will be at least a half of its definition).
[Prev in Thread] | Current Thread | [Next in Thread] |