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

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

Re: Add a hook for color-theme switching


From: address@hidden
Subject: Re: Add a hook for color-theme switching
Date: Sun, 3 Dec 2017 20:17:17 +0800

You're right, `color-theme-mode-hook` does not work for my purpose. And I'm
not
using CustomThemes. Themes there is no existing way to do this.

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Sun, Dec 3, 2017 at 8:12 PM, numbchild@gmail.com <numbchild@gmail.com>
wrote:

> Seems I'm using `color themes`. I only have `color-theme-mode-hook`, don't
> have `custom-new-theme-mode-hook`, `custom-theme-choose-mode-hook`.
>
> Thanks for your explaination.
>
> [stardiviner]           <Hack this world!>      GPG key ID: 47C32433
> IRC(freeenode): stardiviner                     Twitter:  @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
>
> On Sat, Dec 2, 2017 at 11:38 PM, Drew Adams <drew.adams@oracle.com> wrote:
>
>> > Here is an example showing what I want:
>> > (add-hook 'color-theme-load-hook
>> >           (lambda ()
>> >             (set-face-attribute 'hl-sexp-face nil :background ...)
>> > Then the custom faces can be changed automatically according the
>> > color-theme switching.
>>
>> If you really are using color themes (`color-theme.el')
>> then you have `color-theme-mode-hook', but that likely
>> won't help here.  There is no `color-theme-load-hook',
>> AFAIK.
>>
>> On the other hand, if you are using custom themes then
>> there are `custom-new-theme-mode-hook' and
>> `custom-theme-choose-mode-hook'.
>>
>> You have not yet made clear which kind of themes you are
>> using (though you keep saying "color theme"): custom
>> themes or color themes.
>>
>
>


reply via email to

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