all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: goncholden <goncholden@protonmail.com>
To: goncholden <goncholden@protonmail.com>
Cc: goncholden via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Inheriting form font-lock-comment-delimiter-face
Date: Mon, 14 Feb 2022 19:54:56 +0000	[thread overview]
Message-ID: <j1nAec_JdUzJegsAK2cG_jBkqA-J1dmB_rp0LpIvpMXvISXoGHEIpOH-ei_OyHc9Gc7DogrTGzq4BqKAfgbvTDvUblmPA2xH5R33IHoLZmk=@protonmail.com> (raw)
In-Reply-To: <E4IGorE44rYcl5OXgV-vIueUuBQ0mb1189w3w-awhO8Cygr3mZwiAbV1FsgoNSGL-9A8gmld04lrCgDBJFd9G1HxMcmBsJLYVwU39u3EQdA=@protonmail.com>

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



  reply	other threads:[~2022-02-14 19:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13 18:51 Inheriting form font-lock-comment-delimiter-face goncholden via Users list for the GNU Emacs text editor
2022-02-14 19:54 ` goncholden [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='j1nAec_JdUzJegsAK2cG_jBkqA-J1dmB_rp0LpIvpMXvISXoGHEIpOH-ei_OyHc9Gc7DogrTGzq4BqKAfgbvTDvUblmPA2xH5R33IHoLZmk=@protonmail.com' \
    --to=goncholden@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.