emacs-devel
[Top][All Lists]
Advanced

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

Re: Appending items to variables in .dir-locals.el


From: Philip Kaludercic
Subject: Re: Appending items to variables in .dir-locals.el
Date: Wed, 21 Sep 2022 19:06:18 +0000

Juri Linkov <juri@linkov.net> writes:

>>> I think it would be good to be able to add items to variables that hold
>>> lists in `.dir-locals.el'.  Maybe with the special form `(append
>>> VARIABLE . ITEMS))'?  Considering `auto-mode-alist' has its own special
>>> form, I think the need for this already exists.
>>
>> While not exactly what you want, you can add a lisp expression and have
>> it evaluated to the same effect.  But yes, a proper feature would be
>> nice to have.
>
> Isn't (eval . (add-to-list 'VARIABLE ITEMS)) already short enough?

AFAIK this won't check if VARIABLE is safe and the modification isn't
local.



reply via email to

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