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

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

Re: How face inheritance works


From: goncholden
Subject: Re: How face inheritance works
Date: Tue, 01 Mar 2022 12:13:43 +0000

------- Original Message -------

On Tuesday, March 1st, 2022 at 10:51 PM, goncholden via Users list for the GNU 
Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> How does inheritance of font-lock-comment-delimiter-face work with 
> font-lock-comment-face ?
> Do I need to set the foreground colour always after setting 
> font-lock-comment-face?. Or can I also set
> attributes to font-lock-comment-delimiter-face before calls to setting values 
> to font-lock-comment-face ?
> Will any attribute overriding happen to font-lock-comment-delimiter-face when 
> font-lock-comment-face
> is called?
>
> (face-remap-add-relative 'font-lock-comment-face `(:foreground "#FFFF00"))
>
> ;; delimiter-face inherits from font-lock-comment-face
> (if (eq 'dark (frame-parameter nil 'background-mode))
>     (set-face-attribute 'font-lock-comment-delimiter-face nil :foreground 
> "#00FF00")
>   (set-face-attribute 'font-lock-comment-delimiter-face nil :foreground 
> "#00FFFF"))



reply via email to

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