How to view the next days in org-mode's agenda?

It sounds like you want to customise the weekly view, org-mode allows this. See the page: The weekly/daily agenda.

Presenting longer than 1 week

One option would be to present a fortnightly or an agenda slightly longer than one week on the "weekly" view. For a week view of 10 days so (in your hook or similar):

(setq org-agenda-span 10)

Starting view from today

The above sets ten days from last Monday, if you have the default settings. Although I suspect what you are after is not to start on a Monday at all but to start the agenda from the current day. This is achieved by:

(setq org-agenda-start-on-weekday nil)

Where (the manual says):

Non-nil means start the overview always on the specified weekday. 0 denotes Sunday, 1 denotes Monday, etc. When nil, always start on the current day. Custom commands can set this variable in the options section.

A week view spanning the current day

Another useful set-up is to span the current day showing some of the previous days in the past and the week from today, this is a combination of the settings above. For example:

(setq org-agenda-span 10
      org-agenda-start-on-weekday nil
      org-agenda-start-day "-3d")

This shows the current week from today, but also the past three days.

View Dispatch

The in view dispatch isn't that open to customization. It's much better to look to customize the main org-agenda dispatch function through the org-agenda-custom-commands variable and bind org-agenda to a global key.


There is an easier way to do this, by adding a numeric prefix when showing the agenda view.

For example, if I want to show the next 21 days schedule. I can do: C-u 2 1 C-c a a. This will do the trick.


For spacemacs, to display a 14 day agenda, you can do 1 4 SPC a o a.

1 4 can be replaced with any number.

Tags:

Emacs

Org Mode