From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alp Aker Newsgroups: gmane.emacs.help Subject: Re: open recent file on startup Date: Thu, 2 Aug 2012 22:44:57 -0400 Message-ID: References: <116DF072-D45B-4BF2-B227-6904425D33D7@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343961904 32051 80.91.229.3 (3 Aug 2012 02:45:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 02:45:04 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Ferdinand Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 04:45:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sx7su-0005si-Ct for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 04:45:04 +0200 Original-Received: from localhost ([::1]:46622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx7st-0006UG-54 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 22:45:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx7sp-0006U9-36 for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 22:44:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx7so-0000Zc-8o for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 22:44:59 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:60285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx7so-0000Z3-4o for help-gnu-emacs@gnu.org; Thu, 02 Aug 2012 22:44:58 -0400 Original-Received: by mail-yx0-f169.google.com with SMTP id r5so298957yen.0 for ; Thu, 02 Aug 2012 19:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2yoZEvLTNz5CmQr9BMgNZu5/IqZwyzcDwxwhCu5y1So=; b=DoDcgsUi9+yo9WZtYc6CK5cwb7RhEOzJB7qWnKK8L+4a0k4bOVYUTAHVuCbnsAcr5a bNjiQsveo572xHtnqphkW7P3x5PGzw5nV2h1WOUckSBIokBWwvtKZqFoprcx+uSFYPx6 QShdA+BLBGUwAAbz7/ufHyDXPW+xriHPODmkdD2Eaa56/FCvMOzO1s1l+OnCrhGHfFQZ gowFm/ZhQyg95aF8tKu2sTGCODqewpn5wqlrS4VNR2wHcN0JW/BWfiCQiRSr8+Adkl5M vXYVP3g7NQWxoyJ6+kBPXy9xwavK5Jz/9dI078twg7Zy9oMSmwO11TgxPab90k65MpYg 6H3g== Original-Received: by 10.50.188.233 with SMTP id gd9mr7448399igc.73.1343961897253; Thu, 02 Aug 2012 19:44:57 -0700 (PDT) Original-Received: by 10.64.142.70 with HTTP; Thu, 2 Aug 2012 19:44:57 -0700 (PDT) In-Reply-To: <116DF072-D45B-4BF2-B227-6904425D33D7@gmx.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86170 Archived-At: > I copied this in my .emacs file so that the recent file gets opened on st= artup: > > (recentf-mode 1) > (if (file-readable-p recentf-save-file) > (if (> (length recentf-list) 0) > (find-file (car (recentf-elements 1))))) > > It seems to work =96 when I start emacs I see my last opened file. > But then after a second, it switches the buffer back to the standard emac= s start-screen. Setting `initial-buffer-choice' in your .emacs might be what you want.