all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "numbchild@gmail.com" <numbchild@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-help <help-gnu-emacs@gnu.org>
Subject: Re: Add a hook for color-theme switching
Date: Sun, 3 Dec 2017 20:17:17 +0800	[thread overview]
Message-ID: <CAL1eYuLF=smvQbPzGMSZSpbUpeGLSJUEjSiNErXwCb8xHYnVDQ@mail.gmail.com> (raw)
In-Reply-To: <CAL1eYuLgmY34U=hoWdzn7Kz_9c2mstLMy9Zi_ivp7Wkfeeof3A@mail.gmail.com>

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	other threads:[~2017-12-03 12:17 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
2017-12-03 12:12       ` numbchild
2017-12-03 12:17         ` numbchild [this message]

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='CAL1eYuLF=smvQbPzGMSZSpbUpeGLSJUEjSiNErXwCb8xHYnVDQ@mail.gmail.com' \
    --to=numbchild@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.