Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 720
Conor Avatar asked Jan 06 '10 02:01

Conor


People also ask

How do I enable Org Mode in Emacs?

Emacs does not actually understand you are editing an Org document, yet. To enable Org mode on your current document, type M-x org-mode which will enable the Org mode on the current document. Those are minuses, not underscores.

Does Emacs come with Org mode?

Emacs has included Org-mode as a major mode by default since 2006. Bastien Guerry is the current maintainer, in cooperation with an active development community. Since its success in Emacs, some other systems now provide functions to work with org files.


1 Answers

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) 
like image 77
haxney Avatar answered Nov 07 '22 15:11

haxney