emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] eval source blocks in a subtree when opening file


From: Charles C. Berry
Subject: Re: [O] eval source blocks in a subtree when opening file
Date: Tue, 4 Aug 2015 09:29:44 -0700
User-agent: Alpine 2.11 (OSX 23 2013-08-11)

On Tue, 4 Aug 2015, Tamas Papp wrote:

Hi,


[mock file deleted]

I would like to do the following: whenever I open the file in Emacs, I would like to eval all the source blocks under the heading Setup.

I have found org-babel-execute-subtree, but I cannot figure out how to call it on the subtree "Setup" from a local eval.


Name the first block in the subtree "start setup" (say).

Then

# Local Variables:
# eval: (org-babel-goto-named-src-block "start setup")
# eval: (org-babel-execute-subtree)
# End:


should do it.

HTH,

Chuck



reply via email to

[Prev in Thread] Current Thread [Next in Thread]