LoginSignup
1
1

More than 5 years have passed since last update.

Emacs: recentf を ido 等のインターフェイスで使う

Last updated at Posted at 2018-03-17

recentf-find-file.el

recentf はメニュー式なので、普段使いの ido で使いたいと思い書いたものです。

icomplete, icicles, ivy 等でも動くようですが、 zlc では動きませんでした。

テストしていて気づいたのですが icicles では
icicle-recent-file というのがはじめからあるようです。

インストール

こちらからダウンロードし、 load-path の通ったディレクトリに配置して
init.el に以下の 1行を追加して、空いているキーにバインドすれば OK です。
勿論 recentf の設定がないと動きません。

init.el
(require 'recentf-find-file)
(global-set-key "\C-cr" 'recentf-find-file)

recentf の参考設定

参考までに自分の設定です。

init.el
(setq recentf-max-saved-items 300)                 ; max
(setq recentf-exclude '("ido\\.last" "bookmarks")) ; 除外するファイル
(global-set-key [f11] 'recentf-open-files)
(recentf-mode)
(recentf-open-files)
(define-key recentf-dialog-mode-map " "      'next-line))
(define-key recentf-dialog-mode-map [?\S-\ ] 'previous-line)

動作確認している Emacs のバージョン

GNU Emacs 25.3.1 (i686-w64-mingw32) of 2017-09-18

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1