;;;; IDO mode for everything (files and buffers)
;;;
;;; -------------- -------------------------------------------------------
;;; Key            Definition
;;; -------------- -------------------------------------------------------
;;; C-c C-r        Open recent file with IDO

(require 'ido)
(ido-mode 'both)


;; Ignored files and buffers

(setq ido-ignore-files '("\\`#"
                         "\\`.#"
                         "\\`\\.\\./"
                         "\\`\\./"
                         "\\`00"
                         "\\`.*\\.tsk"
                         "\\`ported\\..*"))

(setq ido-ignore-buffers '("\\` "
                           "\\*Buffer List\\*"
                           "\\*Help\\*"
                           "\\*Messages\\*"
                           "\\*Completions\\*"))

(setq ido-enable-flex-matching t)


;; Open recent files with IDO.
;; `abbreviate-file-name' abbreviates home dir to ~/ in the file list
;; Custom abbreviations can be added to `directory-abbrev-alist'.
(require 'recentf)

(recentf-mode 1)
(setq recentf-max-menu-items 25)

(defun ido-find-recentf ()
  "Use ido to select a recently opened file from the `recentf-list'"
  (interactive)
  (find-file
   (ido-completing-read "Recentf open: "
                        (mapcar 'abbreviate-file-name recentf-list)
                        nil t)))
(define-key global-map [(control x)(control r)] 'ido-find-recentf)


(provide 'init-ido)

;;;; IDO mode for everything (files and buffers)
;;;
;;; -------------- -------------------------------------------------------
;;; Key            Definition
;;; -------------- -------------------------------------------------------
;;; C-c C-r        Open recent file with IDO

(require 'ido)
(ido-mode 'both)


;; Ignored files and buffers

(setq ido-ignore-files '("\\`#"
                         "\\`.#"
                         "\\`\\.\\./"
                         "\\`\\./"
                         "\\`00"
                         "\\`.*\\.tsk"
                         "\\`ported\\..*"))

(setq ido-ignore-buffers '("\\` "
                           "\\*Buffer List\\*"
                           "\\*Help\\*"
                           "\\*Messages\\*"
                           "\\*Completions\\*"))

(setq ido-enable-flex-matching t)
(setq ido-use-filename-at-point 'guess)


;; Open recent files with IDO.
;; `abbreviate-file-name' abbreviates home dir to ~/ in the file list
;; Custom abbreviations can be added to `directory-abbrev-alist'.
(require 'recentf)

(recentf-mode 1)
(setq recentf-max-menu-items 25)

(defun ido-find-recentf ()
  "Use ido to select a recently opened file from the `recentf-list'"
  (interactive)
  (find-file
   (ido-completing-read "Recentf open: "
                        (mapcar 'abbreviate-file-name recentf-list)
                        nil t)))
(define-key global-map [(control x)(control r)] 'ido-find-recentf)


(provide 'init-ido)

Add ido guesss for find file at point
Add ido guesss for find file at point

C-x C-f will guess a file to open based on the text at point.

psipika/exordium,jbibollet/exordium,dvamin/dot.emacs,fcassirer/dot.emacs,steve-downey/dot.emacs,philippe-grenet/exordium,pkryger/exordium