From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damon Haley Subject: d Dynamically exclude an 'org id' with org-babel-load-file? Date: Thu, 01 Mar 2012 09:41:48 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S39GM-0006WB-VT for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 11:53:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S39GG-0001j1-0t for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 11:53:54 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S39GF-0001gv-On for emacs-orgmode@gnu.org; Thu, 01 Mar 2012 11:53:47 -0500 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id ABA9821838 for ; Thu, 1 Mar 2012 11:53:44 -0500 (EST) Received: from localhost (innodev.colorado.edu [128.138.175.47]) by mail.messagingengine.com (Postfix) with ESMTPSA id 4134E8E0215 for ; Thu, 1 Mar 2012 11:53:44 -0500 (EST) 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: emacs-orgmode@gnu.org <#!multipart type=alternative><#!part type=text/plain> 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 :PROPERTIES: :CUSTOM_ID: AgendaSetup :END: #+begin_src emacs-lisp :tangle yes :exports none ;; The following setting is different from the document so that you ;; can override the document org-agenda-files by setting your ;; org-agenda-files in the variable org-user-agenda-files ;; (if (boundp 'org-user-agenda-files) (setq org-agenda-files org-user-agenda-files) (setq org-agenda-files (quote ("~/git/org" "~/git/org/client1" "~/git/org/bzflag" "~/git/client2")))) #+end_src 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 <#!part type=text/html>

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




Is there a way to exclude this section. This is because I'd
like to not have to edit his file manually so I can use git pull again
in the future to get Bernt's latest changes.


There is a function in the 'emacs starter kit' called starter-kit-load
that loads by org id, but I'm not sure if there's a way to exclude by
id.


Any help or suggestions would be appreciated.


Damon












<#!/multipart>