[Top][All Lists]

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

Re: How to setup Emacs to load a file right after startup

From: Joel J. Adamson
Subject: Re: How to setup Emacs to load a file right after startup
Date: Wed, 18 Jun 2008 22:23:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Paul Csanyi <address@hidden> writes:

> address@hidden (Joel J. Adamson) writes:
>>>> Paul Csanyi <address@hidden> writes:
>>>>> I have installed GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version
>>>>> 2.8.20) of 2008-04-15 on Debian GNU/Linux Etch system.
>>>>> I wish to be opened a file right after Emacs startup.
>>>>> How can I do that?
>>> (find-file "path_to_file")
>>> works for me.
>> Yeah, I saw the other replies, I just thought I should let you know there
>> is more than one way to do it.  My question would be why do you want to
>> do it that way?


> I use Org-mode all the time in Emacs, so to me it is good to have
> opened one in the Emacs when it is started. do I: my way of doing things is to go to my agenda after Emacs
starts (C-a a).  That opens all my agenda files.  With
org-agenda-file-regexp set to "\\`[^.].*\\.org\\'", all the files open
automatically.  You'll also have to set a default directory for your org files.

Perhaps you should put (org-agenda-goto-today) in your .emacs?  I'm
debating whether to do this right now as I write, however my tendency
has been to avoid starting any modes or opening any files, as it slows
things down, and when I want a quick startup, that's when I notice it.


Joel J. Adamson
(303) 880-3109
Public key:

reply via email to

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