help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-agenda todo list at startup


From: trebol55555
Subject: Re: org-agenda todo list at startup
Date: Sun, 20 Feb 2011 15:09:44 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Thanks a lot Martyn, it's just I was looking for.

I use it in this way
(defun custom-startup ()
  (org-todo-list t)
  (switch-to-buffer "*Org Agenda*"))
(add-hook 'window-setup-hook 'custom-startup)

Thanks again,
Trebol.

Martyn Jago <address@hidden> writes:

> address@hidden writes:
>
> Hi trebol
>
> Use the window-setup-hook. This hook shouldn't be used within a library
> apparently, but is fine for your stuff. It runs after all the init and
> customization stuff. This is what I do anyway...
>
> (defun me-startup-in-agenda ()
>   (split-window-horizontally)
>   (my-load-org-files) 
>   (switch-to-buffer "home.org")
>   (org-agenda-list))
>
>   (add-hook 'window-setup-hook 'me-startup-in-agenda)
>
> Regards
>
> Martyn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]