From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: how to change the set of agenda org files between custom agenda commands Date: Tue, 23 Sep 2008 17:37:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ki9xZ-0000DE-It for emacs-orgmode@gnu.org; Tue, 23 Sep 2008 11:37:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ki9xY-0000D0-3D for emacs-orgmode@gnu.org; Tue, 23 Sep 2008 11:37:52 -0400 Received: from [199.232.76.173] (port=34087 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9xX-0000Cx-U3 for emacs-orgmode@gnu.org; Tue, 23 Sep 2008 11:37:51 -0400 Received: from main.gmane.org ([80.91.229.2]:34311 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ki9xX-0003Mw-CX for emacs-orgmode@gnu.org; Tue, 23 Sep 2008 11:37:51 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ki9xU-00034X-8g for emacs-orgmode@gnu.org; Tue, 23 Sep 2008 15:37:48 +0000 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2008 15:37:48 +0000 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2008 15:37:48 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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