help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open recent file on startup


From: Alp Aker
Subject: Re: open recent file on startup
Date: Thu, 2 Aug 2012 22:44:57 -0400

> I copied this in my .emacs file so that the recent file gets opened on 
> startup:
>
> (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 – when I start emacs I see my last opened file.
> But then after a second, it switches the buffer back to the standard emacs 
> start-screen.

Setting `initial-buffer-choice' in your .emacs might be what you want.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]