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

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

open recent file on startup


From: Ferdinand
Subject: open recent file on startup
Date: Fri, 3 Aug 2012 03:20:04 +0200

Hi,

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.

How can I prevent this?

I have searched my .emacs file, but there is nothing else related to buffers or 
anything ..


thanks!


reply via email to

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