emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to change the set of agenda org files between custom agenda commands
@ 2008-09-23 15:37 Rainer Stengele
  2008-09-23 23:16 ` Dan Griswold
  0 siblings, 1 reply; 6+ messages in thread
From: Rainer Stengele @ 2008-09-23 15:37 UTC (permalink / raw)
  To: emacs-orgmode

I am struggling to switch the set of used agenda org files between different custom agenda commands.

I tried something like

(setq org-agenda-custom-commands
       '(
	("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...")
         ("ka" tags-todo "CATEGORY=\"ADMIN\"")
         ("kP" tags-todo "CATEGORY=\"PRIVAT\""
	 ((org-agenda-files (quote ("~/org/PRIVAT/PRIVAT.org")))))
...


or


(setq org-agenda-custom-commands
       '(
	("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...")
         ("ka" tags-todo "CATEGORY=\"ADMIN\"")
         ("kP" tags-todo "CATEGORY=\"PRIVAT\""
	 ((org-agenda-directory "~/org/PRIVAT")))
...


but am failing miserably. Can someone point me to a solution?


Motivation: in the middle of my worktime I want to be able to look into a completely different (private) set of org files.
I know I could write a elisp function and redefine the org-agenda-custom-commands but I would like to do this in one place.

Rainer

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-25 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-23 15:37 how to change the set of agenda org files between custom agenda commands Rainer Stengele
2008-09-23 23:16 ` Dan Griswold
2008-09-24 21:25   ` Rainer Stengele
2008-09-25  2:54     ` Dan Griswold
2008-09-25  3:32     ` Carsten Dominik
2008-09-25 12:00       ` Rainer Stengele

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).