emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How do you interact with org src blocks for your gmane.emacs.orgmode correspondence?
@ 2014-10-31 22:51 Brady Trainor
  2014-11-01  2:24 ` Brady Trainor
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Brady Trainor @ 2014-10-31 22:51 UTC (permalink / raw)
  To: emacs-orgmode


When reading articles /from/ gmane.emacs.orgmode /in/ Gnus, I've observed that source blocks such as 

#+BEGIN_SRC emacs-lisp
(if this
    (then that))
#+END_SRC

and 

#+BEGIN_SRC org
,* TODO some headlines and                        :atag:
SCHEDULED: <2014-10-29 Wed>
- [ ] some other org-mode stuff
#+END_SRC

do receive syntax highlighting. But to take advantage of this and to write articles in this way my workflow is very awkward. 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 ("<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. 

I am not sure it is relevant, but my rather vanilla Gnus setup includes drafting mail in Message buffer. I didn't quickly find how to switch to drafting with Gnus, so I make the cursory assumption that this is not the trick to at least seeing highlighting of src blocks while drafting emails. 

--
Brady

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-11-08 18:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).