emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Niels Giesen <niels.giesen@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Sending org buffer as mail?
Date: Sun, 19 Dec 2010 16:39:15 -0700	[thread overview]
Message-ID: <87oc8huycc.fsf@gmail.com> (raw)
In-Reply-To: <87tyia3qcg.fsf@gmail.com> (Niels Giesen's message of "Sun, 19 Dec 2010 13:21:51 +0100")

Niels Giesen <niels.giesen@gmail.com> writes:

> "Eric Schulte" <schulte.eric@gmail.com> writes:
>
>> Thanks, I've just pushed up a new version of org-mime which makes use of
>> this function.
>
> [...]
>
> Hi Eric,
>
> I love the org-mime-subtree function! It makes writing good-looking
> mails very easy.
>
> Now for a proposal:
>
> For ascii export used for mail, it would be cool if SRC and EXAMPLE
> blocks be surrounded by "cut here" scissor lines. They look well in gnus
> for example:
>

For even better looking code in gnus, I personally prefer to use org as
my export target (rather than ascii), and with "Org-mode code block
fontification" configuration from
http://eschulte.github.com/emacs-starter-kit/starter-kit-gnus.html
code blocks inside org-mode markup will be correctly fontified in gnus
messages.

>
> code or example here
>
> Maybe the best way to achieve this is to define a hook before the string
> is sent to `org-export-string' with the FMT arg set to 'ascii, so that
> people can define their own functions. For instance, there are also
> people who prefer a block like
>

good idea, I've just added a series of hooks to org-mime which will be
called in a temporary buffer holding the text to be exported, so you
could add a function here to add scissor lines around code blocks.  Like
Sam I would discourage the use of boxquotes for anything that users may
want to cut and paste.  For ascii use the `org-mime-pre-ascii-hook'.

If you come up with useful hooks it may be nice to share them on worg at
http://orgmode.org/worg/org-contrib/org-mime.php

>
> ,----[ emacs-lisp ]
> | source here
> `----
>
> What do you think?
>
> Regards,
>
> Niels.

Thanks for the suggestion -- Eric

  parent reply	other threads:[~2010-12-19 23:39 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16  8:04 Sending org buffer as mail? Rainer M Krug
2010-12-16  8:17 ` Oscar Carlsson
2010-12-16  8:25   ` Jeff Horn
2010-12-16  8:54     ` Rainer M Krug
2010-12-16 10:38       ` Oscar Carlsson
2010-12-16 10:41         ` Rainer M Krug
2010-12-16 12:38           ` Rainer M Krug
2010-12-16 13:49             ` Oscar Carlsson
2010-12-16 21:27             ` Sebastian Rose
2010-12-16 21:34             ` Sebastian Rose
2010-12-17  1:06       ` Matt Lundin
2010-12-17  1:27         ` Eric Schulte
2010-12-17  6:48           ` Eric Schulte
2010-12-17  8:57             ` Rainer M Krug
2010-12-17 10:02               ` Eric Schulte
2010-12-17 11:54           ` Matt Lundin
2010-12-17 21:25             ` Eric Schulte
2010-12-19 12:21               ` Niels Giesen
2010-12-19 20:47                 ` Samuel Wales
2010-12-19 23:39                 ` Eric Schulte [this message]
2010-12-21 20:55                   ` Niels Giesen
2010-12-27 14:53                     ` Eric Schulte
2010-12-27 18:11                       ` Niels Giesen
2010-12-28  3:58                         ` Eric Schulte
2010-12-27 17:53                     ` Samuel Wales
2010-12-17 14:47           ` Jean-Marie Gaillourdet
2010-12-17 21:26             ` Eric Schulte
2010-12-18 23:26               ` Ethan Ligon
2010-12-20  1:46                 ` Eric Schulte
2010-12-20 10:20                   ` Sébastien Vauban
2010-12-16 10:37     ` Oscar Carlsson
2010-12-16 13:22       ` Eric Schulte
2010-12-16 13:39         ` Rainer M Krug
2010-12-16 14:45         ` Sébastien Vauban
2010-12-16 14:56           ` Eric Schulte
2010-12-16 16:19             ` Sébastien Vauban
2010-12-16 18:20               ` Eric Schulte
2010-12-16 18:29       ` Jeff Horn

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87oc8huycc.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=niels.giesen@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).