From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: agenda dispatcher - show different sets of deadlines - dispatch by string instead only by char Date: Thu, 26 Jul 2007 10:29:05 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDyit-00043H-C3 for emacs-orgmode@gnu.org; Thu, 26 Jul 2007 04:29:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDyis-00041m-2X for emacs-orgmode@gnu.org; Thu, 26 Jul 2007 04:29:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDyir-00041H-C0 for emacs-orgmode@gnu.org; Thu, 26 Jul 2007 04:29:25 -0400 Received: from main.gmane.org ([80.91.229.2] 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 1IDyiq-0000dF-Fc for emacs-orgmode@gnu.org; Thu, 26 Jul 2007 04:29:24 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IDyii-0005Rl-8Q for emacs-orgmode@gnu.org; Thu, 26 Jul 2007 10:29:16 +0200 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 ; Thu, 26 Jul 2007 10:29:16 +0200 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jul 2007 10:29:16 +0200 In-Reply-To: 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 Rainer Stengele schrieb: > I am able to define a agenda custom command like this: > > (setq org-agenda-custom-commands > '(("d" agenda "X-Agenda 0 days deadline preview" > ((org-deadline-warning-days 0))) > > which means "get me the agenda without any deadlines" > > > I would also be able to get the agenda with maybe 3 days looking into the future for deadlines. > So I could: > > (setq org-agenda-custom-commands > '(("d" agenda "X-Agenda 0 days deadline preview" > ((org-deadline-warning-days 0)) > ("e" agenda "X-Agenda 3 days deadline preview" > ((org-deadline-warning-days 3))) > > and so on. > > > I would like to be able to dispatch with a short string instead of only a character: > example: > > > (setq org-agenda-custom-commands > '(("D0" agenda "X-Agenda 0 days deadline preview" > ((org-deadline-warning-days 0)) > ("D3" agenda "X-Agenda 3 days deadline preview" > ((org-deadline-warning-days 3)) > ("D7" agenda "X-Agenda 7 days deadline preview" > ((org-deadline-warning-days 7)))) > > > I recognise that at the moment only single characters are allowed for the dispatcher. > I am not (yet) able to modify org.el so that this will work. > > Anybody with similar wishes? Anybody want to help me before Carsten comes back and tells what he thinks? > Thanks. > > > rainer ok - having more than 1 character to dispatch the agenda is a bad idea because it also needs a RETURN to finish the selection. I now stick with this config: ... ("d" agenda "X-Agenda 0 days deadline preview" ((org-deadline-warning-days 0))) ("D" agenda "X-Agenda 1 days deadline preview" ((org-deadline-warning-days 1))) ("2" agenda "X-Agenda 2 days deadline preview" ((org-deadline-warning-days 2))) ("3" agenda "X-Agenda 3 days deadline preview" ((org-deadline-warning-days 3))) ("7" agenda "X-Agenda 7 days deadline preview" ((org-deadline-warning-days 7))) ... "d" and "D" are needed because "0" and "1" are used already. anybody else doing stuff like that any other way? rainer