[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: load calendar on startup
From: |
Teemu Likonen |
Subject: |
Re: load calendar on startup |
Date: |
Wed, 10 Jun 2009 07:50:48 GMT |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
On 2009-06-09 20:35 (-0700), knubee wrote:
>> Have you tried
>>
>> (org-agenda-list)
>>
>> near the bottom of your .emacs file?
>
> that did it. thanks.
>
> (so i guess the way to have something load on startup is to invoke the
> appropriate function somewhere in the .emacs file. make sense.)
Yes, .emacs file is evaluated at Emacs startup. :-)
There is also variable after-init-hook which contains a list of
functions to run after loading all initialization files. So, you could
also add a command like
(add-hook 'after-init-hook 'org-agenda-list)
to your .emacs file. Now function org-agenda-list is not run immediately
but after all initilization. For more info, see the info node "(elisp)
Init File":
C-h i d m elisp RET i init file RET