I just put
(setq ido-use-virtual-buffers t) in my init file. It seems ido virtual buffers includes my bookmarks after I use
How could I make ido virtual buffers only includes my recent files?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
I think I found the solution, but I don't know if it will break something. So far, it works fine.
(defadvice ido-add-virtual-buffers-to-list (around k--advice-remove-bookmarks activate) (let ((bookmark-alist ())) ad-do-it))
Equivalently, with the newer
(define-advice ido-add-virtual-buffers-to-list (:around (fn &rest args) my-disable-bookmarks) "Call FN on ARGS with bookmarks temporarily disabled." (let ((bookmark-alist ())) (apply fn args)))