From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: adamsonj@email.unc.edu (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: How to setup Emacs to load a file right after startup Date: Wed, 18 Jun 2008 15:04:51 -0400 Message-ID: <87k5gmsgx8.fsf@edna.homeunix.org> References: <87lk14ckdl.fsf@debian-asztal.csanyi-pal.info> <87iqw7a6kb.fsf@edna.homeunix.org> <87ve07z1sm.fsf@debian-asztal.csanyi-pal.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213816191 23433 80.91.229.12 (18 Jun 2008 19:09:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 19:09:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Paul Csanyi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 21:10:34 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 1K9334-0004qg-Fo for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 21:10:26 +0200 Original-Received: from localhost ([127.0.0.1]:51443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K932E-0008OC-Pj for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 15:09:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K931v-0008NX-CA for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 15:09:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K931r-0008Mh-OH for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 15:09:15 -0400 Original-Received: from [199.232.76.173] (port=35682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K931r-0008Me-Ih for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 15:09:11 -0400 Original-Received: from smtpsrv1.isis.unc.edu ([152.2.1.140]:37796 helo=smtp.unc.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K931q-0007lY-ID for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 15:09:11 -0400 Original-Received: from edna (cpe-024-088-244-107.nc.res.rr.com [24.88.244.107]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id m5IJ8hLV021345; Wed, 18 Jun 2008 15:08:46 -0400 (EDT) In-Reply-To: <87ve07z1sm.fsf@debian-asztal.csanyi-pal.info> (Paul Csanyi's message of "Wed, 18 Jun 2008 08:37:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:54958 Archived-At: Paul Csanyi writes: > 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 -- Joel J. Adamson (303) 880-3109 Public key: http://pgp.mit.edu http://www.unc.edu/~adamsonj http://trashbird1240.blogspot.com