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

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

Inheriting form font-lock-comment-delimiter-face


From: goncholden
Subject: Inheriting form font-lock-comment-delimiter-face
Date: Sun, 13 Feb 2022 18:51:23 +0000

I want to use normal weight for comments, because by default I use bold.
I set the weight for font-lock-comment-delimiter-face to normal, then I copy to
font-lock-comment-face. Is this good way to do it?

(defun richkov-annotation-font-weight ()
"Use normal weight typeface for comments."
(set-face-attribute 'font-lock-comment-delimiter-face nil :weight 'normal)
(copy-face 'font-lock-comment-delimiter-face 'font-lock-comment-face) )

reply via email to

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