help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: custom-themes BAD?


From: W . Greenhouse
Subject: Re: custom-themes BAD?
Date: Tue, 25 Feb 2014 21:05:13 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Rainer M Krug <address@hidden> writes:

> Dan Espen <address@hidden> writes:

[...]

>> It should be a simple matter for all themes to run a hook that removes
>> the previous theme.  Then have each theme define it's own hook function.
>> But removing a face won't revert to the prior face, so each theme would
>> have to query the current setting, then save it in the hook function
>> for removal.
>
> Exactly - should not be to difficult to implement.

The by-default-cumulative behavior of themes is confusing to newbies,
but there is already `disable-theme'.  `load-theme' does not normally
call `disable-theme' on the rest of `custom-enable-themes' prior to
loading a new one, but you could advice it to do so.  See also M-x
customize-themes, which already is hooked up to enable one theme at a
time, removing others.




reply via email to

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