From: goncholden via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Inheriting form font-lock-comment-delimiter-face
Date: Sun, 13 Feb 2022 18:51:23 +0000 [thread overview]
Message-ID: <E4IGorE44rYcl5OXgV-vIueUuBQ0mb1189w3w-awhO8Cygr3mZwiAbV1FsgoNSGL-9A8gmld04lrCgDBJFd9G1HxMcmBsJLYVwU39u3EQdA=@protonmail.com> (raw)
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) )
next reply other threads:[~2022-02-13 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-13 18:51 goncholden via Users list for the GNU Emacs text editor [this message]
2022-02-14 19:54 ` Inheriting form font-lock-comment-delimiter-face goncholden
2022-02-14 23:59 ` goncholden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='E4IGorE44rYcl5OXgV-vIueUuBQ0mb1189w3w-awhO8Cygr3mZwiAbV1FsgoNSGL-9A8gmld04lrCgDBJFd9G1HxMcmBsJLYVwU39u3EQdA=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=goncholden@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).