Search code examples
emacsdot-emacsorg-mode

How can I show the Org-mode agenda on Emacs start-up?


I would like the Org-mode agenda to automatically show what I have to do today when I open Emacs. The org-agenda command is interactive, so it doesn't seem to work well for this purpose.

Is there a way to show the Org-mode agenda on Emacs start-up?

Thanks,

Conor


Solution

  • You can use after-init-hook to run a piece of code after initialization has finished. To run (org-agenda-list) after init, use:

    (add-hook 'after-init-hook 'org-agenda-list)