I want my agenda to show the current week starting from today until the end of the week, Sunday. How do I go about achieving this?
The code
(setq org-agenda-custom-commands '(("w" "Current week"
(agenda "" ((org-agenda-span 'week)
(org-agenda-start-day "-0d")
(org-agenda-start-on-weekday 1))))))
Shows the current week starting from Monday rather than the current day, if I set
org-agenda-start-on-weekday
to nil
then the agenda shows until next Tuesday (if today is Tuesday for example).
NOTE: I can compute the number of days from today until next Monday (though I am not 100% sure how to do it in elisp) and set org-agenda-span
accordingly, but I don't think I can do it as part of org-agenda-custom-commands
.