[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Org heading properties in code block?
From: |
Rick Frankel |
Subject: |
Re: [O] Org heading properties in code block? |
Date: |
Thu, 23 Jan 2014 12:04:12 -0500 |
User-agent: |
Roundcube Webmail/0.9.0 |
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