summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-10-22 21:09:16 -0400
committerKyle Meyer <kyle@kyleam.com>2014-10-22 21:09:16 -0400
commitead2b569124f455b23e828650dfa8864aaba414b (patch)
tree2653dc6e98c1631ff1686bab160587a96bd93910 /lisp
parent85e10c8a8de0d5ecb384105fb48389a69cca1854 (diff)
downloademacs.d-ead2b569124f455b23e828650dfa8864aaba414b.tar.gz
Don't bind read-recent-file results
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-buffile.el6
-rw-r--r--lisp/init-org.el3
2 files changed, 3 insertions, 6 deletions
diff --git a/lisp/init-buffile.el b/lisp/init-buffile.el
index f932f66..8c3f6df 100644
--- a/lisp/init-buffile.el
+++ b/lisp/init-buffile.el
@@ -89,14 +89,12 @@ user."
(defun km/recentf-find-file ()
"Find a file from `recentf-list'."
(interactive)
- (-when-let (file (km/read-recent-file))
- (find-file file)))
+ (find-file (km/read-recent-file)))
(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)))
+ (find-file-other-window (km/read-recent-file)))
(defun km/read-recent-file ()
(ido-completing-read "Choose recent file: " recentf-list nil t))
diff --git a/lisp/init-org.el b/lisp/init-org.el
index cf524d7..b24f32e 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -68,8 +68,7 @@ PDF files are not ignored."
(defun km/org-open-recent-file ()
"Open a file from `recentf-list' with `org-open-file'."
(interactive)
- (-when-let (file (km/read-recent-file))
- (org-open-file file)))
+ (org-open-file (km/read-recent-file)))
(autoload 'magit-annex-present-files "magit-annex")