[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inheriting form font-lock-comment-delimiter-face
From: |
goncholden |
Subject: |
Re: Inheriting form font-lock-comment-delimiter-face |
Date: |
Mon, 14 Feb 2022 19:54:56 +0000 |
Because I use bold font by default, I want to have normal weight for comments.
I start with setting
the weight for font-lock-comment-delimiter-face to normal, then copying to
font-lock-comment-face.
Here is the function I have constructed. Does it make sense approaching the
task in this way?
(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) )