summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-05-04 23:38:08 -0400
committerKyle Meyer <kyle@kyleam.com>2014-05-04 23:38:08 -0400
commitfadef39eb241201bef576651b7c40205af145b06 (patch)
treefc582abff930373ee7f1ee2e1923a0314a882531
parent3f0ce0bfe7fa49149c73e27e77224a3e22f61769 (diff)
downloademacs.d-fadef39eb241201bef576651b7c40205af145b06.tar.gz
Cosmetic changes to km/recentf-ido-find-file
-rw-r--r--lisp/init-ido.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/init-ido.el b/lisp/init-ido.el
index ae1c8ea..be8f5f3 100644
--- a/lisp/init-ido.el
+++ b/lisp/init-ido.el
@@ -40,9 +40,9 @@
(defun km/recentf-ido-find-file ()
"Find a recent file using ido."
(interactive)
- (let ((file (ido-completing-read "Choose recent file: " recentf-list nil t)))
- (when file
- (find-file file))))
+ (-when-let (file (ido-completing-read "Choose recent file: "
+ recentf-list nil t))
+ (find-file file)))
(key-chord-define-global ",r" 'km/recentf-ido-find-file)
(key-chord-define-global ",b" 'ido-switch-buffer)