emacs-devel
[Top][All Lists]
Advanced

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

Re: Add a separate mode for .dir-locals.el


From: João Távora
Subject: Re: Add a separate mode for .dir-locals.el
Date: Thu, 17 Oct 2019 18:42:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt)

Eli Zaretskii <address@hidden> writes:

>> From: João Távora <address@hidden>
>> Cc: Eli Zaretskii <address@hidden>,  Clément Pit-Claudel
>>  <address@hidden>,  emacs-devel <address@hidden>
>> Date: Thu, 17 Oct 2019 18:04:26 +0100
>> 
>> Stefan Monnier <address@hidden> writes:
>> 
>> >>>> A better option would be to have a base `lisp-prog-mode` and hen
>> >>>> derive emacs-lisp-mode from it.
>> >>> Exactly.  dir-locals-mode should share a parent with emacs-lisp-mode.
>> >> Yes.  Is this very hard to do?
>> >
>> > No, it should be straightforward.
>> > See sample patch below.
>> 
>> Indeed, quite nice.  Eli, would you also opposed to having .dir-locals.el
>> buffers use emacs-lisp-data-mode by default?  We could reuse it for
>> other things other than dir-locals.
>
> As I said, I don't want to introduce a major mode for this tiny
> problem.  It's gross.

If the problem is small but the best solution is equally small and
cheap, then I think you should consider it.  Stefan's solution isn't
gross at all, it's the most correct way to reuse code in this situation.

> As for other things, I'm not sure that they matter (no one complained
> about them yet),

I think Yuri just did, about lisp data files. Like Gnu's, for example,
or ido.el's or recentf's.

> and I'm not sure we have a good idea of what exactly does that entail.

Using Stefan's patch and adding some entries to auto-mode-alist?

João




reply via email to

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