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:12:13 +0000

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

> > > You have to evaluate it to find out what it does ...
> >
> > The beginning (characters ;; are red), the rest is another
> >
> > colour I had set up. Should one also colourise
> >
> > the delimiters?
>
> 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) 
))





reply via email to

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