[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tangling from multiple files
From: |
David Bremner |
Subject: |
tangling from multiple files |
Date: |
Tue, 17 Mar 2020 20:21:19 -0300 |
I've seen this question around e.g. stack overflow, but none of the
answers I found seems really satisfactory.
I'd like to share a set of begin_src / end_src blocks in a.org between
b.org and c.org; in particular b.org and c.org contain noweb references
to names defined in a.org. Is there a better way than using
(org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring
manual action every time a.org changes.
For example, here is a.org
#+name: x.scm
#+begin_src scheme
(define x 1)
#+end_src
#+name: y.scm
#+begin_src scheme
(define y 2)
#+end_src
and here is b.org. You can imagine c is similar, but maybe swaps the
order of x and y
#+begin_src scheme :tangle "b.scm" :noweb strip-export
<<x.scm>>
<<y.scm>>
#+end_src
# Local Variables:
# eval: (org-babel-lob-ingest "a.org")
# End:
- tangling from multiple files,
David Bremner <=