emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Dynamically exclude an 'org id' with org-babel-load-file?


From: Damon Haley
Subject: [O] Dynamically exclude an 'org id' with org-babel-load-file?
Date: Thu, 01 Mar 2012 09:55:26 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Hi, I downloaded Bernt Hansen's wonderful GTD orgmode setup from:


git clone git://git.norang.ca/org-mode-doc.git


I am then using his customizations in my emacs config with:


(org-babel-tangle-file "~/git/src/org-mode-doc/org-mode.org")
(org-babel-load-file "~/git/src/org-mode-doc/org-mode.org")


However there is one section under Bernt's 'Agenda setup' with an org id
of 'AgendaSetup' that I don't want to evaluate in my emacs
initialization.


Agenda Setup




I know I could edit the file directly and change tangle to 'no'.


But is there a way to exclude this section dynamically when I start up
emacs without having to manually change Bernt's file? This is because
I'd like to use git pull again in the future to get Bernt's latest
changes and not have to keep track of the changes I made.


There is a function in the 'emacs starter kit' called starter-kit-load
that loads org file section by id or tag, but I'm not sure if there's a
way to do the opposite and load while excluding id(s) or tag(s) using
org-babel.


Any help or suggestions would be appreciated.


Damon





reply via email to

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