From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Brown Subject: Re: html-email in org-mode Date: Sat, 05 Nov 2016 19:27:11 -0500 Message-ID: <8737j53128.fsf@air.ericcbrown.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3BIw-0004kc-IB for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 20:27:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3BIr-0002Eb-P2 for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 20:27:22 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53708) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3BIr-0002DJ-KT for emacs-orgmode@gnu.org; Sat, 05 Nov 2016 20:27:17 -0400 In-Reply-To: (John Kitchin's message of "Tue, 01 Nov 2016 12:10:58 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: John Kitchin Cc: "Emacs-orgmode@gnu.org" , John Kitchin John Kitchin writes: > htmlize-mail.org > > > * Send org files by html email so they look like org files. > :PROPERTIES: > :MAIL_FMT: html > :END: > > We might not always want a full export of an org heading to html for sending an email. Eric Brown would like to just send something that looks like what he sees in org-mode. There is another way to get html from emacs: htmlize! Here is an example. Eric: if this is what you mean, see my modified org-mime.el at https://github.com/jkitchin/scimax/blob/master/org-mime.el. > > The command to send a subtree is: elisp:org-mime-subtree-htmlize > > > #+BEGIN_EXAMPLE > My comment was motivated by other usage where I wish that I could simply > wrap an entire simple text, whitespace-formatted email message, > e.g. generated from org export to a plain text buffer, with a Monospace > directive so that webmail users could appreciate what I see with Sans > Mono. > #+END_EXAMPLE > > | a | b | c | > | 4 | 5 | 6 | > > An equation > \(e^{i\pi} + 1 = 0\) > > > A figure: > > #+name: fig-particle > #+attr_org: :width 30% > ./images/Au-icosahedron-3.png > > > A code block: > #+BEGIN_SRC python :results output org drawer > for i in range(5): > print(i) > #+END_SRC > > ** A subtree > > An orgmode reference: cite:Dominik201408. A figure reference: ref:fig-particle. Thanks John. This is very helpful!