From fadef39eb241201bef576651b7c40205af145b06 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 4 May 2014 23:38:08 -0400 Subject: Cosmetic changes to km/recentf-ido-find-file --- lisp/init-ido.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') 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) -- cgit v1.2.3