From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: How do you interact with org src blocks for your gmane.emacs.orgmode correspondence? Date: Fri, 31 Oct 2014 19:24:36 -0700 Message-ID: <87mw8b7j4r.fsf@uw.edu> 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]:45653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkON8-0003fU-Gb for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 22:25:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkON2-0008Gj-Ej for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 22:24:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:34853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkON2-0008GD-8C for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 22:24:52 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XkON1-0001PW-76 for emacs-orgmode@gnu.org; Sat, 01 Nov 2014 03:24:51 +0100 Received: from 75-165-58-174.tukw.qwest.net ([75.165.58.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 03:24:51 +0100 Received: from algebrat by 75-165-58-174.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Nov 2014 03:24:51 +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: > ... Here is my > present workflow, and I hope there is some simple or complex solution > where others have a better workflow they can share: > > 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 > ... I think I have found a rather peculiar solution (to my lengthy workflow). A normal solution: Based off a simple solution, of simply changing the mode of the email-draft (message) buffer to org-mode. Than C-c ' to edit in another mode, C-c ' to return, and M-x message-mode RET to view the normal message-mode hightlighting of headers and quoted messages. Strangish solution: C-x 4 c to clone the buffer, then switch to org-mode. But strangely, the syntax highlighting of message-mode is preserved! Simultaneously I get both modes' syntax highlighting, and