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

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?
>
> Joel

Thank you Joel!

I want to do it that way is that that I use Window Maker
windowmanager, and I have App Icon for the Emacs.

When I want to use Emacs I just click on his App Icon and Emacs
starts. 

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.

Using .emacs file is for me the intuitive way when I am using Emacs.

However I can setup App Icon of Emacs with command:
'emacs OrgFile.org' too to get what I want, but that way is not so
close with Emacs and Lisp.

-- 
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm





  reply	other threads:[~2008-06-18 20:47 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 [this message]
2008-06-19  2:23         ` Joel J. Adamson
     [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=87zlpijwrj.fsf@debian-asztal.csanyi-pal.info \
    --to=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.