[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Refreshing custom agenda view ignores daily setting
From: |
Carsten Dominik |
Subject: |
Re: [Orgmode] Refreshing custom agenda view ignores daily setting |
Date: |
Thu, 10 Sep 2009 22:40:51 +0200 |
On Sep 8, 2009, at 8:58 AM, PT wrote:
If I open the builtin agenda view with a M-1 prefix I see the
entries for the current day. When I press "g" then the view is
refreshed properly.
If I define a custom agenda
(setq org-agenda-custom-commands
'(("h" "Agenda and todo"
((agenda "")
(alltodo "")))))
and invoke it with a M-1 prefix then it shows my daily agenda
entries and the global todo items under it. If I press "g" here then
the view is refreshed, but the agenda view forgets I invoked it with
a prefix and shows a weekly agenda above the todo list, instead of a
daily one.
Hi PT,
yes, the prefix argument is not preserved in his case.
You can add a setting for org-agenda-ndays to the option settings
for the agenda command (untested):
(setq org-agenda-custom-commands
'(("h" "Agenda and todo"
((agenda "" ((org-agenda-ndays 1)))
(alltodo "")))))
HTH
- Carsten