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

Conor picture Conor · Jan 6, 2010 · Viewed 8.2k times · Source

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

Answer

haxney picture haxney · Jan 6, 2010

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)