From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz 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 Message-ID: <87bnormbld.fsf@gmail.com> References: <87vbmzq2di.fsf@uw.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkWOJ-00064B-CD for emacs-orgmode@gnu.org; Sat, 01 Nov 2014 06:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkWOB-0006KR-OE for emacs-orgmode@gnu.org; Sat, 01 Nov 2014 06:58:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:48621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkWOB-0006KK-HR for emacs-orgmode@gnu.org; Sat, 01 Nov 2014 06:58:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XkWO9-000895-T0 for emacs-orgmode@gnu.org; Sat, 01 Nov 2014 11:58:33 +0100 Received: from g231110129.adsl.alicedsl.de ([92.231.110.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 11:58:33 +0100 Received: from tjolitz by g231110129.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 11:58:33 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Brady Trainor 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 (" 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