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

[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 23:59:28 +0000

Sent with ProtonMail Secure Email.
------- Original Message -------
On Monday, February 14th, 2022 at 7:54 PM, goncholden 
<goncholden@protonmail.com> wrote:

> 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) )

I think that my use of copy-face follows the setting of the attribute, so the 
setting of that attribute is lost by overwrite copying.



reply via email to

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