From: Rainer Stengele <rainer.stengele@diplan.de>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <f89m0h$194$1@sea.gmane.org> (raw)
In-Reply-To: <f85a01$92p$1@sea.gmane.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
next prev parent reply other threads:[~2007-07-26 8:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 16:39 agenda dispatcher - show different sets of deadlines - dispatch by string instead only by char Rainer Stengele
2007-07-26 8:29 ` Rainer Stengele [this message]
2007-07-26 9:03 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f89m0h$194$1@sea.gmane.org' \
--to=rainer.stengele@diplan.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).