I can start emacs with my org-mode agenda view by putting the following in my init.el
file:
(org-agenda-list)
(delete-other-windows)
Or I can start it with my global todo list:
(org-todo-list)
(delete-other-windows)
But not both. I can define a custom view like so:
(add-to-list
'org-agenda-custom-commands
'("z" "calendar + todo"
((agenda "")
(todo ""))))
But how can I start emacs with this custom view loaded?
C-h f
akaM-x describe-function
, you can look uporg-agenda-list
and see what the optional arguments are. You can then experiment by calling that function with your custom arguments, including, but not limited to let-binding certain applicable variables ...org-agenda-list
are(&optional ARG START-DAY SPAN WITH-HOUR)
. There doesn't seem to be anything related to TODOs in there. Am I missing something?