Brady Trainor <algeb...@uw.edu> writes: > 1. Cut some pieces from my .el or .org files, > 2. Paste into the scratch buffer, > 3. Convert scratch buffer to Major mode org, > 4. Add src blocks using org-mode shortcuts ("<s TAB org" or "selisp SPC"), > 5. Edit as needed for email, for instance taking advantage of > indenting etc. in "C-c '" mode > 6. Cut and paste from scratch buffer to email draft > 7. Edit email > 8. If extensive editing of src blocks is needed while drafting, may > consider switching back to scratch buffer including further cutting > and pasting > > This seems wholly inefficient, and I'm hoping there is some obviously > easier way to do it, no matter how much elisp is needed.
Yup. Outorg works with message-mode too, so I write my mails in message-mode, and do ,---- | M-# # (outorg-edit-as-org) `---- whenever I need Org-mode functionality like src-blocks, and then ,---- | M-# (outorg-copy-edits-and-exit) `---- in the *outorg-edit-buffer* when I'm done with editing in Org-mode. Makes it easy to edit you emails in full Org-mode. There are some extra benefits, like automatic (optionally temporary) insertion of export headers, automatic backup files in a /tmp folder (one file for each explicit save with C-x C-s, and one saved when killing the *outorg-edit-buffer*). And there is a new library [[http://goo.gl/pYYzS6][outorg-export]] by Jonathan Leech-Pepin that keeps source-files and (Org) exports in sync. -- cheers, Thorsten