 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; sort ido filelist by mtime instead of alphabetically
 ;; source: http://www.emacswiki.org/emacs/InteractivelyDoThings
-(add-hook 'ido-make-file-list-hook 'ido-sort-mtime)
-(add-hook 'ido-make-dir-list-hook  'ido-sort-mtime)
 (defun ido-sort-mtime ()
   (setq ido-temp-list
         (sort ido-temp-list

;; Time-stamp: <2014-06-19 11:55:40 kmodi>

;; Interactively Do Things
;; Source: http://www.masteringemacs.org/articles/2010/10/10/introduction-to-ido-mode/
;; Source: https://github.com/magnars/.emacs.d/blob/master/setup-ido.el

(require 'ido)
(setq ido-enable-flex-matching t ;; enable fuzzy search
      ido-everywhere t
      ido-create-new-buffer 'always ;; create a new buffer if no buffer matches substring

   (delq nil (mapcar
              (lambda (x) (and (char-equal (string-to-char x) ?.) x))
              ido-temp-list))))
(add-hook 'ido-make-file-list-hook 'ido-sort-mtime)
(add-hook 'ido-make-dir-list-hook  'ido-sort-mtime)

;; Open recent files with IDO,
;; https://github.com/lunaryorn/stante-pede/blob/master/init.el
