On Thu, 26 Aug 2021, Eric Abrahamsen writes:

> Andreas Reuleaux <r...@a-rx.info> writes:
>
>> Hi,
>>
>> I have seen people highlighting code snippets in mail
>> with "cut here markers": some ascii art for scissors, "cut here",
>> "start", "end", ..., like so:
>>
>> rm -f /etc/fonts/conf.d/70-no-bitmaps.conf
>> ln -f -s /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf  
>> /etc/fonts/conf.d
>>
>>
>> which is kind of nice, and simple (as I don't want to get into
>> composing html mails with org-mime or the like).
>>
>> I get to see them "green on yellow" in gnus (once I have received
>> such mails), or when in draft status (in my drafts folder).
>>
>> Two questions (at least):
>>
>> For one thing, I wonder if this behaviour is anywhere
>> documented/specified/explained in more detail?
>>
>> And then: I would like to see my code green-on-yellow snippets in
>> message mode as well (when composing mail), or at least as a toggle:
>> see how my mail would look to the recipient.
>>
>> And how are people actually using these "cut here markers":
>> insert them by hand, as I did above? Or is there some automatic support
>> for this hidden somewhere? - Or any other mechanisms for
>> such code snippets highlighting - in org mode nevertheless perhaps [?]:
>> I don't want to send html mails, but maybe org-mime / orgmsg / etc.
>> are useful for composing mails?
>
> The command to run is `message-mark-inserted-region', bound to "C-c M-m"
> by default in message-mode. It's not terribly discoverable, but it is
> there in the "Message" menu.
>
> I don't believe there's currently any way to get a "preview" in
> message-mode, of how your outgoing message will look to the recipient.
>

It seems that 'mml-preview' (C-c RET P) shows the highlighting.


-- 
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net

  • ... Andreas Reuleaux
    • ... Eric Abrahamsen
      • ... Andreas Reuleaux
      • ... Enrico Schumann
        • ... Andreas Reuleaux
    • ... Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
      • ... Alexandre Duret-Lutz

Reply via email to