* How face inheritance works
@ 2022-03-01 10:51 goncholden via Users list for the GNU Emacs text editor
2022-03-01 12:13 ` goncholden
0 siblings, 1 reply; 2+ messages in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-03-01 10:51 UTC (permalink / raw)
To: goncholden via Users list for the GNU Emacs text editor
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"
) ))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How face inheritance works
2022-03-01 10:51 How face inheritance works goncholden via Users list for the GNU Emacs text editor
@ 2022-03-01 12:13 ` goncholden
0 siblings, 0 replies; 2+ messages in thread
From: goncholden @ 2022-03-01 12:13 UTC (permalink / raw)
To: goncholden; +Cc: goncholden via Users list for the GNU Emacs text editor
------- 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"))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-01 12:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-01 10:51 How face inheritance works goncholden via Users list for the GNU Emacs text editor
2022-03-01 12:13 ` goncholden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).