emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Tamas Papp
Subject: [O] eval source blocks in a subtree when opening file
Date: Tue, 04 Aug 2015 14:13:29 +0200

Hi,

I have a file that looks like this (stylized):

--8<---------------cut here---------------start------------->8--- * Setup :noexport:

#+COMMENT: some code here I want to run every time I open the file in SRC blocks

* Experiment 1

 #+COMMENT: code I run when necessary, not every time

* Experiment 2

 #+COMMENT: code I run when necessary, not every time

* end of file :noexport: #+COMMENT: This is just for local variables, not exported. # Local Variables: # org-confirm-babel-evaluate: nil # org-export-babel-evaluate: 'inline-only # End: --8<---------------cut here---------------end--------------->8--- 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.

Best,

Tamas



reply via email to

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