summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")