all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: help-gnu-emacs@gnu.org
Subject: Re: load calendar on startup
Date: Wed, 10 Jun 2009 07:50:48 GMT	[thread overview]
Message-ID: <87ocswy1bt.fsf@iki.fi> (raw)
In-Reply-To: 0850c739-8f5f-44b1-a6cb-a2c5b4cd1472@v4g2000vba.googlegroups.com

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


  reply	other threads:[~2009-06-10  7:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  2:31 load calendar on startup knubee
2009-06-09 21:53 ` m
2009-06-10  3:35   ` knubee
2009-06-10  7:50     ` Teemu Likonen [this message]
2009-06-11  1:49       ` knubee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ocswy1bt.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.