[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Appending items to variables in .dir-locals.el
From: |
Juri Linkov |
Subject: |
Re: Appending items to variables in .dir-locals.el |
Date: |
Wed, 21 Sep 2022 21:40:23 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
>> 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?