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

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

Re: Setting colour for comments for light and dark theme


From: Michael Heerdegen
Subject: Re: Setting colour for comments for light and dark theme
Date: Thu, 03 Feb 2022 03:13:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

goncholden <goncholden@protonmail.com> writes:

> > (face-remap-add-relative 'font-lock-comment-face
> >
> > `(:foreground ,(alist-get chroma levels)))))
> >
> I wonder if there is any way that colours change whether one is using
> a light or dark theme.

The SPECS in `face-remap-add-relative' can also be faces - see

  (info "(elisp) Face Remapping")

So I think you should be able to do what you want if you specify a face
that specifies different foreground colors for the different background
modes.

Michael.



reply via email to

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