Gnus development mailing list
 help / color / mirror / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: ding@gnus.org
Subject: Re: Emphasizing text when composing mails?
Date: Tue, 19 Dec 2023 16:49:39 +0100	[thread overview]
Message-ID: <87r0jixkdo.fsf@dataswamp.org> (raw)
In-Reply-To: <87jzpav4fq.fsf@hillenius.net>

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

-- 
underground experts united
https://dataswamp.org/~incal



      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:
  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=87r0jixkdo.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=ding@gnus.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.
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).