[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:12:56 +0800 |
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.
>