From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How do you interact with org src blocks for your gmane.emacs.orgmode correspondence?
Date: Sat, 01 Nov 2014 11:58:22 +0100 [thread overview]
Message-ID: <87bnormbld.fsf@gmail.com> (raw)
In-Reply-To: 87vbmzq2di.fsf@uw.edu
Brady Trainor <algebrat@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
next prev parent reply other threads:[~2014-11-01 10:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-31 22:51 How do you interact with org src blocks for your gmane.emacs.orgmode correspondence? Brady Trainor
2014-11-01 2:24 ` Brady Trainor
2014-11-01 10:58 ` Thorsten Jolitz [this message]
2014-11-03 1:26 ` Grant Rettke
2014-11-03 8:06 ` Thorsten Jolitz
2014-11-06 18:22 ` org links and outshine (Was: How do you interact with org src blocks for your gmane.emacs.orgmode correspondence?) Alan Schmitt
2014-11-07 10:16 ` org links and outshine Thorsten Jolitz
2014-11-08 18:15 ` Alan Schmitt
2014-11-01 13:01 ` How do you interact with org src blocks for your gmane.emacs.orgmode correspondence? Alexander Baier
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=87bnormbld.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).