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
_______________________________________________
Emacs-orgmode mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode