emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Multipart/Alternative reply to email?


From: Thorsten Jolitz
Subject: Re: [O] Multipart/Alternative reply to email?
Date: Fri, 25 Mar 2016 12:37:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Peter Davis <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]