Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Enrico Schumann <es@enricoschumann.net>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: info-gnus-english@gnu.org
Subject: Re: cut here markers for code snippets in mail
Date: Fri, 27 Aug 2021 07:23:40 +0200	[thread overview]
Message-ID: <87czpzv4tf.fsf@enricoschumann.net> (raw)
In-Reply-To: <8735qvdgtm.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 26 Aug 2021 14:41:41 -0700")

On Thu, 26 Aug 2021, Eric Abrahamsen writes:

> Andreas Reuleaux <rx@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


  parent reply	other threads:[~2021-08-27  5:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 18:23 Andreas Reuleaux
2021-08-26 21:41 ` Eric Abrahamsen
2021-08-27  0:22   ` Andreas Reuleaux
2021-08-27  5:23   ` Enrico Schumann [this message]
2021-08-27 11:28     ` Andreas Reuleaux
2021-09-19 16:35 ` Wayne Harris via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
2021-09-20  7:20   ` Alexandre Duret-Lutz

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=87czpzv4tf.fsf@enricoschumann.net \
    --to=es@enricoschumann.net \
    --cc=eric@ericabrahamsen.net \
    --cc=info-gnus-english@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.
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).