diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-09-27 21:12:16 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-09-27 21:12:16 -0400 |
commit | 58e52585c1707260055d5bfe66d3d232281a5edf (patch) | |
tree | fec1a6c7b884898d59e45b6f4e555e1237232713 /lisp | |
parent | 08ff413999987035619732502fe7aaaf3a1e2392 (diff) | |
download | emacs.d-58e52585c1707260055d5bfe66d3d232281a5edf.tar.gz |
Rename recentf find-file functions
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-buffile.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/init-buffile.el b/lisp/init-buffile.el index 687f8b1..f932f66 100644 --- a/lisp/init-buffile.el +++ b/lisp/init-buffile.el @@ -85,15 +85,15 @@ user." recentf-max-menu-items 15) (recentf-mode t) -;; From prelude -(defun km/recentf-ido-find-file () - "Find a recent file using ido." +;; Modified from prelude +(defun km/recentf-find-file () + "Find a file from `recentf-list'." (interactive) (-when-let (file (km/read-recent-file)) (find-file file))) -(defun km/recentf-ido-find-file-other-window () - "Find a recent file in other window using ido." +(defun km/recentf-find-file-other-window () + "Find a file from `recentf-list' in other window." (interactive) (-when-let (file (km/read-recent-file)) (find-file-other-window file))) @@ -101,11 +101,11 @@ user." (defun km/read-recent-file () (ido-completing-read "Choose recent file: " recentf-list nil t)) -(key-chord-define-global ",r" 'km/recentf-ido-find-file) +(key-chord-define-global ",r" 'km/recentf-find-file) ;; This overrides `find-file-read-only-other-window', but ;; `view-file-other-window', which I map to 'v', has the same ;; functionality. -(define-key ctl-x-4-map "r" 'km/recentf-ido-find-file-other-window) +(define-key ctl-x-4-map "r" 'km/recentf-find-file-other-window) ;;; Temporary scratch files |