From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Sending org buffer as mail? Date: Sun, 19 Dec 2010 16:39:15 -0700 Message-ID: <87oc8huycc.fsf@gmail.com> References: <87zks49jip.fsf@gmail.com> <87tyia3qcg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35724 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUSqd-0001qD-Oc for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 18:39:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUSqc-00071o-O6 for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 18:39:27 -0500 Received: from mail-pz0-f49.google.com ([209.85.210.49]:48509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUSqc-00071Y-JM for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 18:39:26 -0500 Received: by pzk30 with SMTP id 30so639755pzk.36 for ; Sun, 19 Dec 2010 15:39:25 -0800 (PST) In-Reply-To: <87tyia3qcg.fsf@gmail.com> (Niels Giesen's message of "Sun, 19 Dec 2010 13:21:51 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Niels Giesen Cc: emacs-orgmode@gnu.org Niels Giesen writes: > "Eric Schulte" 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