emacs-devel
[Top][All Lists]
Advanced

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

Re: Representation of the Emacs userbase on emacs-devel


From: Óscar Fuentes
Subject: Re: Representation of the Emacs userbase on emacs-devel
Date: Mon, 06 Sep 2021 17:29:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Perhaps we could extend the themes mechanism so that when a theme is
>> enabled, and when it is disabled, a particular hook is run.
>
> No need: a theme can already run the code it likes.
> In the worst case, it can provide its own global minor modes and then set 
> those
> modes's Custom vars to the values it likes.

There are legit uses for such a hook. For instance: I have some advices
set for enable/disable-theme. They adapt certain custom faces to changes
on the default face's background.

It's really surprising that the hook was not implemented on day one. It
almost goes against Emacs' good practices.




reply via email to

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