From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Csanyi Newsgroups: gmane.emacs.help Subject: Re: How to setup Emacs to load a file right after startup Date: Wed, 18 Jun 2008 22:47:28 +0200 Message-ID: <87zlpijwrj.fsf@debian-asztal.csanyi-pal.info> References: <87lk14ckdl.fsf@debian-asztal.csanyi-pal.info> <87iqw7a6kb.fsf@edna.homeunix.org> <87ve07z1sm.fsf@debian-asztal.csanyi-pal.info> <87k5gmsgx8.fsf@edna.homeunix.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213822106 12713 80.91.229.12 (18 Jun 2008 20:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 20:48:26 +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 18 22:49:10 2008 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 1K94aV-00026M-0L for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 22:49:03 +0200 Original-Received: from localhost ([127.0.0.1]:38300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K94Zg-0002Mx-Dh for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 16:48:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K94ZM-0002Ln-2y for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 16:47:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K94ZK-0002L8-O3 for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 16:47:51 -0400 Original-Received: from [199.232.76.173] (port=37112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K94ZK-0002Km-Fe for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 16:47:50 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:40797 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K94ZG-0001o4-DO for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 16:47:46 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K94ZB-0002gB-Fg for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 20:47:41 +0000 Original-Received: from 91.102.227.98 ([91.102.227.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2008 20:47:41 +0000 Original-Received: from csanyipal by 91.102.227.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2008 20:47:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 91.102.227.98 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:H8auCuy86tYas59BnXZ0OpYvQ1c= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:54962 Archived-At: adamsonj@email.unc.edu (Joel J. Adamson) writes: >>> Paul Csanyi 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