Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 1.16 KB
;; Use C-f during file selection to switch to regular find-file
(ido-mode t) ; use 'buffer rather than t to use only buffer switching
(ido-everywhere t)
(setq ido-auto-merge-work-directories-length 0)
(setq ido-enable-prefix nil
ido-enable-flex-matching t
ido-create-new-buffer 'always
ido-use-filename-at-point t
ido-max-prospects 10)
(defun steve-ido-choose-from-recentf ()
"Use ido to select a recently opened file from the `recentf-list'"
(find-file (ido-completing-read "Open file: " recentf-list nil t)))
(global-set-key [(meta f11)] 'steve-ido-choose-from-recentf)
;; ido completion in M-x
;; See
(defun ido-execute ()
"M-x "
(let (cmd-list)
(mapatoms (lambda (S) (when (commandp S) (setq cmd-list (cons (format "%S" S) cmd-list)))))
(global-set-key "\M-x" 'ido-execute)
(provide 'init-ido)