Re: [O] Org heading properties in code block?

2014-01-23 Thread Rick Frankel

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



[O] Org heading properties in code block?

2014-01-21 Thread Christopher Kotfila
Is it possible to include org heading properties directly in codeblocks 
on tangle?


Something to the effect of:

** 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


Thanks!
/Chris