[O] Org babel with multiple linked segments of source code
From:
Nicholas Patrick
Subject:
[O] Org babel with multiple linked segments of source code
Date:
Mon, 21 Mar 2011 21:57:30 -0500
I'm trying to figure out how to minimize the overhead with using babel to write some segments of code. I find myself writing short segments of a set of functionality, then writing a collector source block which is referred to later on in the code... e.g.
#+srcname: test2 #+begin_src clojure bar #+end_src ********************* I'd like to see blah foo bar blah
but I see blah foo blah
What I'd like to see is a single srcname for the code that just concatenates the two different sections when it is referred by <<descriptive-name>>. That way I don't have to come up with different names and collectors and so on and so forth. Maybe I'm just not doing "literate programming" right, but when I'm hacking stuff together, I'd like to minimize the housekeeping. e.g.