open-recentf on Emacs startup
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


MELPA init-open-recentf MELPA stable: init-open-recentf

Open recentf immediately after Emacs is started. Here are some example scenarios for when Emacs is started from the command line:

  • If files are opened (e.g. $ emacs file1.txt), nothing out of the ordinary occurs– the file is opened.
  • However if a file is not indicated (e.g. $ emacs ), recentf will be opened after emacs is initialized.

This script uses only the inbuilt advice function for startup. It does not require or use any interactive function.


Put the following into your .emacs file (~/.emacs.d/init.el)


init-open-recentf supports the following frameworks: Helm, IDO, Ivy/Counsel and Anything (and the default emacs setup without those frameworks).

The package determines the frameworks from your environment, but you can also indicate it explicitly.

(setq init-open-recentf-interface 'ido)

Another possible configuration is demonstrated below if you want to specify an arbitrary function.

(setq init-open-recentf-function #'awesome-open-recentf)


(add-hook 'init-open-recentf-after-hook 'your/init-func)

 (lambda ()
   (with-current-buffer "*scratch*"
     (goto-char (point-max))
     (insert "
;;        r /
;;   __ , --ヽ!-- .、_
;;  !  `/::::;::::ヽ l
;;  !二二!::/}::::丿ハニ|
;;  !ニニ.|:/ ノ/ }::::}コ
;;  L二lイ  0´ 0 ,':ノコ
;;  lヽノ/ヘ、 '' ▽_ノイ ソ
;;   ソ´ /}`ス / ̄ ̄ ̄ ̄/
;;    .(_:;つ/  0401 / カタカタ
;;   ̄ ̄ ̄ ̄ ̄\/____/



Cask (without pallet)

See the Cask Installation guide. Put into your Cask file the following.

(depends-on "init-open-recentf")


See Getting Started - MELPA. M-x package-install and type init-open-recentf.


See El-Get #Installation. Put into your init.el file the following.

(el-get-bundle init-open-recentf)