From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: how to change the set of agenda org files between custom agenda commands Date: Wed, 24 Sep 2008 23:25:38 +0200 Message-ID: <48DAB052.1080102@diplan.de> References: <87iqsmwj0b.fsf@cantor.griswold.home> 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 1Kibri-0000Ky-N2 for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 17:25:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kibrh-0000Kl-Lq for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 17:25:42 -0400 Received: from [199.232.76.173] (port=42934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kibrh-0000Kg-Ex for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 17:25:41 -0400 Received: from ns.diplan.de ([212.34.188.4]:48750 helo=mail.diplan.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kibrh-0002mx-1J for emacs-orgmode@gnu.org; Wed, 24 Sep 2008 17:25:41 -0400 In-Reply-To: <87iqsmwj0b.fsf@cantor.griswold.home> 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: Dan Griswold Cc: emacs-orgmode@gnu.org Dan Griswold wrote: > Rainer Stengele 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