|
From: | Rainer Stengele |
Subject: | [Orgmode] Re: how to change the set of agenda org files between custom agenda commands |
Date: | Wed, 24 Sep 2008 23:25:38 +0200 |
User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
Dan Griswold wrote:
Rainer Stengele <address@hidden> writes: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")))))Playing with customize I came up with this possibility: (setq org-agenda-custom-commands '( ("k" . "Kundenbezogene / Ketegoriebezogene TODOs ...") ("ka" tags-todo "CATEGORY=\"ADMIN\"") ("kP" tags-todo "CATEGORY=\"PRIVAT\"" ((org-agenda-files '("~/org/PRIVAT/PRIVAT.org")))))) Will that do it? Dan
Dan, thank you. I somehow does and doesn't. After using the command I get the "private" entries.After using another command analogous to this it seems I cannot reset the org-agenda-files variable. Looks like it only adds files to it?
I played around a lot but could not get it to function as wanted. Anyway, the syntax is quite complex.I wonder if some more examples for changing agenda files when executing custom commands would be helpful. Anyone else who wants to see Agenden at home from different sets of agenda files?
Rainer
[Prev in Thread] | Current Thread | [Next in Thread] |