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: Fri, 1 Dec 2017 08:14:35 -0800 (PST) [thread overview]
Message-ID: <2f961f6a-6279-445e-80de-d2eabdd43276@default> (raw)
In-Reply-To: <f0b1df96-01df-340a-1e41-95bc1663ee43@gmail.com>
> When I start Emacs, the face ~hl-sexp-face~ is been set
> by the Emacs initialized color-theme.
Vanilla Emacs doesn't use color themes. It uses custom
themes - the user theme by default. Color themes are
available through library `color-theme.el'.
Color themes:
https://www.emacswiki.org/emacs/ColorThemes
Custom themes:
https://www.emacswiki.org/emacs/CustomThemes
> Then I use package =circadian= to auto switch color-theme
> or manually switch color-theme with command `disable-theme'
> and `load-theme'. But this face `hl-sexp-face' is defined
> already, usually not good for another switched color-theme.
I don't understand the problem. Are you saying that when
you switch to another theme (presumably a custom theme)
the appearance of face `hl-sexp-face' changes?
> So I hope there is a hook for switching color-theme like
> `color-theme-switch-hook' etc.
Do you mean that after you switch to another theme you
want to invoke some code? What code would you invoke?
Is the idea just to make face `hl-sexp-face' have or
keep the appearance you want?
next prev parent reply other threads:[~2017-12-01 16:14 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 [this message]
2017-12-02 5:09 ` stardiviner
2017-12-02 15:38 ` Drew Adams
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=2f961f6a-6279-445e-80de-d2eabdd43276@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.