all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: adamsonj@email.unc.edu (Joel J. Adamson)
To: Paul Csanyi <csanyipal@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to setup Emacs to load a file right after startup
Date: Wed, 18 Jun 2008 22:23:22 -0400	[thread overview]
Message-ID: <87d4merwmd.fsf@edna.homeunix.org> (raw)
In-Reply-To: <87zlpijwrj.fsf@debian-asztal.csanyi-pal.info> (Paul Csanyi's message of "Wed, 18 Jun 2008 22:47:28 +0200")

Paul Csanyi <csanyipal@gmail.com> writes:

> adamsonj@email.unc.edu (Joel J. Adamson) writes:
>
>>>> Paul Csanyi <csanyipal@gmail.com> 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 OrgFile.org in the Emacs when it is started.

Ahh...so 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

-- 
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com




  reply	other threads:[~2008-06-19  2:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 12:32 How to setup Emacs to load a file right after startup Paul Csanyi
2008-06-17 13:59 ` Peter Dyballa
2008-06-17 17:20 ` Joel J. Adamson
2008-06-18  6:37   ` Paul Csanyi
2008-06-18 19:04     ` Joel J. Adamson
2008-06-18 20:47       ` Paul Csanyi
2008-06-19  2:23         ` Joel J. Adamson [this message]
     [not found] <mailman.13445.1213705963.18990.help-gnu-emacs@gnu.org>
2008-06-17 14:44 ` nakkaya
2008-06-18 21:52   ` nakkaya

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=87d4merwmd.fsf@edna.homeunix.org \
    --to=adamsonj@email.unc.edu \
    --cc=csanyipal@gmail.com \
    --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.