* Refreshing custom agenda view ignores daily setting
@ 2009-09-08 6:58 PT
2009-09-10 20:40 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: PT @ 2009-09-08 6:58 UTC (permalink / raw
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Refreshing custom agenda view ignores daily setting
2009-09-08 6:58 Refreshing custom agenda view ignores daily setting PT
@ 2009-09-10 20:40 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-09-10 20:40 UTC (permalink / raw
To: PT; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-10 20:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08 6:58 Refreshing custom agenda view ignores daily setting PT
2009-09-10 20:40 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.