emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Multipart/Alternative reply to email?
Date: Fri, 25 Mar 2016 12:37:47 +0100	[thread overview]
Message-ID: <87y49623g4.fsf@gmail.com> (raw)
In-Reply-To: 6sw6c7y498q8zy.fsf@BO-C02PWE1MG8WN.home

Peter Davis <pfd@pfdstudio.com> writes:

> I realize this would require somehow converting the original message
> to org-mode markup, and that seems very tricky. I just wondered
> if anyone had taken a stab at building something like this.

outorg.el works with message-mode too, so I currently write this message
in Org-mode. Not related to org-mime in anyway, maybe not even to your
intention, but nevertheless helpful perhaps. Just install outshine and
outorg via package manager and follow the instructions for your .emacs
file, and don't forget to put

#+BEGIN_SRC emacs-lisp  
(add-hook 'message-mode-hook 'outline-minor-mode)
#+END_SRC

then this lets you edit your message-mode buffer in org-mode:

,----[ C-h f outorg-edit-as-org RET ]
| outorg-edit-as-org is an interactive Lisp function in `outorg.el'.
| 
| It is bound to M-# #, <menu-bar> <Outshine> <Edit As Org>.
| 
| (outorg-edit-as-org &optional ARG)
| 
| Convert and copy to temporary Org buffer
| 
| With ARG, act conditional on the raw value of ARG:
| 
| | prefix | raw | action 1          | action 2                       |
| |--------+-----+-------------------+--------------------------------|
| | C-u    | (4) | edit-whole-buffer | ---                            |
| | C-1    |   1 | edit-whole-buffer | insert default export-template |
| | C-2    |   2 | edit-whole-buffer | prompt user for template-file  |
| | C-3    |   3 | edit-whole-buffer | insert & keep default template |
| | C-4    |   4 | edit-whole-buffer | insert & keep template-file    |
| | C-5    |   5 | propagate changes | ---                            |
`----

and this lets you return from org-mode to message-mode (bound to M-#):

,----[ C-h f outorg-copy-edits-and-exit RET ]
| outorg-copy-edits-and-exit is an interactive Lisp function in
| `outorg.el'.
| 
| (outorg-copy-edits-and-exit)
| 
| Replace code-buffer content with (converted) edit-buffer content and
|   kill edit-buffer
`----

-- 
cheers,
Thorsten

  parent reply	other threads:[~2016-03-25 11:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 13:51 Multipart/Alternative reply to email? Peter Davis
2016-03-24 14:08 ` Eric S Fraga
2016-03-24 14:23   ` Peter Davis
2016-03-24 16:19     ` Eric S Fraga
2016-03-25 11:37 ` Thorsten Jolitz [this message]
2016-03-26 11:55   ` Uwe Brauer
2016-03-26 12:21     ` Thorsten Jolitz
2016-04-03 20:07 ` Adam Porter
  -- strict thread matches above, loose matches on Subject: below --
2016-03-25 13:46 Peter Davis

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=87y49623g4.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@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.
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).