Re: Emphasizing text when composing mails?

Emanuel Berg <[email protected]>
Newsgroups gmane.emacs.gnus.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.