From: Damon Haley <dkh@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: Dynamically exclude an 'org id' with org-babel-load-file?
Date: Thu, 01 Mar 2012 10:35:20 -0700 [thread overview]
Message-ID: <4cwr742pif.fsf@member.fsf.org> (raw)
In-Reply-To: <2fpqcwi7lt.fsf@member.fsf.org> (Damon Haley's message of "Thu, 01 Mar 2012 09:55:26 -0700")
Damon Haley <dkh@member.fsf.org> writes:
Oops, the answer was right in from of me. Just set
'org-user-agenda-files.'
"
;; 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
"
However, it would still be nice to know how to untangle a specific
block by id if that is possible.
Thanks,
Damon
> 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
>
--
___________________
/ ________ -[]--. \ \/ I /\/ Y |_ I S |_ A |\| |} @ ssl-mail.com
/ ,-' `-. \ \ Send me long text - http://www.asciiribbon.org
/ ( o ) _) \ http://email.is-not-s.ms
/ `-._________,-'_ /_/-.\ \/ I /\/ Y |_ I S |_ @ jabber.sdf.org Jabber me
/ __ _ " " " \ \/ I /\/ Y |_ I S |_ . netlsd dot com Check out my PGP key
/_____________________________\
"-=-------------------------=-"
prev parent reply other threads:[~2012-03-01 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 16:55 Dynamically exclude an 'org id' with org-babel-load-file? Damon Haley
2012-03-01 17:35 ` Damon Haley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cwr742pif.fsf@member.fsf.org \
--to=dkh@member.fsf.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).