From: Drew Adams <drew.adams@oracle.com>
To: stardiviner <numbchild@gmail.com>, emacs-help <help-gnu-emacs@gnu.org>
Subject: RE: Add a hook for color-theme switching
Date: Sat, 2 Dec 2017 07:38:50 -0800 (PST) [thread overview]
Message-ID: <e6cc0b0a-b45a-4c2a-aa48-2d6cb29d0104@default> (raw)
In-Reply-To: <d4747961-50b0-f844-f9b6-f2d4acb31ce3@gmail.com>
> 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.
next prev parent reply other threads:[~2017-12-02 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 10:45 Add a hook for color-theme switching stardiviner
2017-12-01 16:14 ` Drew Adams
2017-12-02 5:09 ` stardiviner
2017-12-02 15:38 ` Drew Adams [this message]
2017-12-03 12:12 ` numbchild
2017-12-03 12:17 ` numbchild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6cc0b0a-b45a-4c2a-aa48-2d6cb29d0104@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=numbchild@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.