On 2014-01-21 14:08, Christopher Kotfila wrote:
Is it possible to include org heading properties directly in
codeblocks on tangle?

** Some Subheading
:PROPERTIES:
:FOO: "bar"
:END:

#+BEGIN_SRC emacs-lisp :tangle /path/to/.dir-locals.el :noweb yes
((python-mode . ((some-var . <<FOO>>))))

#+END_SRC


how about:

* As a variable
:PROPERTIES:
:header-args: :var foo="bar"
:END:

#+BEGIN_SRC emacs-lisp
foo
#+END_SRC
* As a noweb source block

#+name: foo
#+BEGIN_SRC emacs-lisp :exports none :eval never
"bar"
#+END_SRC

#+BEGIN_SRC emacs-lisp :noweb yes
(foo . <<foo>>)
#+END_SRC

rick

Reply via email to