From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: load calendar on startup Date: Wed, 10 Jun 2009 07:50:48 GMT Organization: Sonera Customer Message-ID: <87ocswy1bt.fsf@iki.fi> References: <87ski9f501.fsf@senf.i-did-not-set--mail-host-address--so-tickle-me> <0850c739-8f5f-44b1-a6cb-a2c5b4cd1472@v4g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244623297 18220 80.91.229.12 (10 Jun 2009 08:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 08:41:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 10 10:41:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MEJNF-0003mV-Oi for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 10:41:34 +0200 Original-Received: from localhost ([127.0.0.1]:43965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEJNF-0000uI-96 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 04:41:33 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!feeder.erje.net!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read4.inet.fi.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:m8lKY8ucFF10YjGNg82OTGgJLWE= Original-Lines: 26 Original-NNTP-Posting-Host: 84.251.6.80 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1244620248 84.251.6.80 (Wed, 10 Jun 2009 10:50:48 EEST) Original-NNTP-Posting-Date: Wed, 10 Jun 2009 10:50:48 EEST Original-Xref: news.stanford.edu gnu.emacs.help:169879 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65109 Archived-At: 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