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

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

Re: face-remap-add-relative versus set-face-attribute


From: goncholden
Subject: Re: face-remap-add-relative versus set-face-attribute
Date: Sun, 13 Feb 2022 09:22:58 +0000


Sent with ProtonMail Secure Email.

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

On Sunday, February 13th, 2022 at 9:19 AM, Emanuel Berg via Users list for the 
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:

> goncholden wrote:
>
> > > I want them the same color, so I copy the color of
> > >
> > > font-lock-comment-face to font-lock-comment-delimiter-face.
> >
> > I have done as follows, but the face-attribute is not
> > correct because I get Wrong type argument: frame-live-p,
> > :weight
> >
> > (defun richkov-annotation-font-weight ()
> > "Use normal weight typeface for comments."
> > (set-face-attribute 'font-lock-comment-face nil :weight 'normal)
> > (set-face-attribute 'font-lock-comment-delimiter-face
> > :weight (face-attribute 'font-lock-comment-face :weight) ))
>
> It is the second `set-face-attribute' ...

(set-face-attribute 'font-lock-comment-delimiter-face nil
   :weight (face-attribute 'font-lock-comment-face :weight) ))

Is this the way you would inherit same weight from font-lock-comment ?




reply via email to

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