Gnus development mailing list
 help / color / mirror / Atom feed
From: Emanuel Berg <>
Subject: Re: Emphasizing text when composing mails?
Date: Tue, 19 Dec 2023 16:49:39 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Gijs Hillenius wrote:

>> Gnus has the feature to display some words with a different
>> face if they are bracketed with certain characters (*bold*,
>> /italic/, _underline_).
>> Is there a command for the opposite direction when
>> composing mails, i. e. I write a paragraph, I want to mark
>> up "for example" as bold, so I select those words as
>> a region, M-x some-gnus-or-emacs-command, and the text
>> changes to "*for* *example*"?
> This is the difference between Gnus' Message mode (for
> writing) and its Article mode (for reading). No idea if it
> possible to add display features from Article mode to
> Message mode.

It should work, but doesn't,

;; regexp from gnus-art.el line 7878, Emacs 29.0 Gnus 5.13
(font-lock-add-keywords 'message-mode
   ("['`‘]\\([a-z][a-z0-9]+-[a-z]+\\)['’]"  (1 font-lock-reference-face))

underground experts united

      reply	other threads:[~2023-12-19 15:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14 14:58 Tim Landscheidt
2023-12-19 11:04 ` Gijs Hillenius
2023-12-19 15:49   ` Emanuel Berg [this message]

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:

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

  git send-email \ \ \ \

* 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 NNTP newsgroup(s).