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 22:23:22 -0400 Message-ID: <87d4merwmd.fsf@edna.homeunix.org> 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> <87zlpijwrj.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 1213842513 3617 80.91.229.12 (19 Jun 2008 02:28:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2008 02:28:33 +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 Thu Jun 19 04:29:17 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 1K99tk-0007WF-3X for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2008 04:29:16 +0200 Original-Received: from localhost ([127.0.0.1]:59211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K99sv-0007eA-Ex for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 22:28:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K99sd-0007dx-Ah for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 22:28:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K99sc-0007dl-0S for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 22:28:07 -0400 Original-Received: from [199.232.76.173] (port=43830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K99sb-0007df-QR for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 22:28:05 -0400 Original-Received: from smtpsrv0.isis.unc.edu ([152.2.1.139]:38388 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 1K99sb-0007Qt-Md for help-gnu-emacs@gnu.org; Wed, 18 Jun 2008 22:28:05 -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 m5J2RDbB013044; Wed, 18 Jun 2008 22:27:17 -0400 (EDT) In-Reply-To: <87zlpijwrj.fsf@debian-asztal.csanyi-pal.info> (Paul Csanyi's message of "Wed, 18 Jun 2008 22:47:28 +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:54965 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? [...] > 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