From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Org heading properties in code block? Date: Thu, 23 Jan 2014 12:04:12 -0500 Message-ID: <030eb3ce7a2e2f362ae6222e1909c8a3@mail.rickster.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6NhT-0000sH-7r for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 12:04:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6NhL-0006aZ-K2 for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 12:04:19 -0500 Received: from mail.rickster.com ([204.62.15.78]:51398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6NhL-0006aP-HM for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 12:04:11 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christopher Kotfila Cc: emacs-orgmode@gnu.org 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 . <>)))) > > #+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 . <>) #+END_SRC rick