Shorten the names displayed in prelude-recentf-ido-find-file

This commit is contained in:
Bozhidar Batsov 2013-04-28 17:35:24 +03:00
parent f7d126fae9
commit b09eaf8e0e

View file

@ -291,7 +291,9 @@ buffer is not visiting a file."
(defun prelude-recentf-ido-find-file ()
"Find a recent file using ido."
(interactive)
(let ((file (ido-completing-read "Choose recent file: " recentf-list nil t)))
(let ((file (ido-completing-read "Choose recent file: "
(-map 'abbreviate-file-name recentf-list)
nil t)))
(when file
(find-file file))))