On Fri, Aug 3, 2012 at 12:44 PM, Alp Aker
<alptekin.aker@gmail.com> wrote:
> 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.