views:

362

answers:

3

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

+2  A: 

Try (org-agenda-list). If you just want today, (org-agenda-list 1).

And of course, apropos is your friend. C-h C-a org-agenda (or whatever command) will show you useful info on that command.

kwatford
+5  A: 

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)
haxney
That's the ticket. kwatford's answer below was also very helpful, but I couldn't add '(org-agenda-list 1) as the argument for my .emacs file. If someone could clear this up, I'd be delighted.
Conor
`(add-hook 'after-init-hook '(lambda () (org-agenda-list 1)))`
nullptr
This works but how can I focus on the "Org Agenda" buffer on startup? (I'm using tabbar)
lecodesportif
+1  A: 

I have a bash alias to start emacs with the Agenda open:

alias org='/usr/bin/emacs --funcall org-agenda-list &'

Enjoy.

Demosthenex