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.
Permalink
Failed to load latest commit information.
README.org
init-open-recentf.el

README.org

init-open-recentf.el

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.

Setup

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

(init-open-recentf)

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)
(init-open-recentf)

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

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

Hook

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

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

"))))

Installation

Cask (without pallet)

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

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

MELPA

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

El-get

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

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