emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] how to change the set of agenda org files between custom agend


From: Rainer Stengele
Subject: [Orgmode] how to change the set of agenda org files between custom agenda commands
Date: Tue, 23 Sep 2008 17:37:36 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

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





reply via email to

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