 ;; (defun ido-disable-line-truncation ()
 ;;   (set (make-local-variable 'truncate-lines) nil))
 ;; (add-hook 'ido-minibuffer-setup-hook 'ido-disable-line-truncation)
-
-(defun ido-define-keys ()
-  ;; C-n/p  and up/down keys are more intuitive in vertical layout
-  (define-key ido-completion-map (kbd "C-n")    'ido-next-match)
-  (define-key ido-completion-map (kbd "<down>") 'ido-next-match)
-  (define-key ido-completion-map (kbd "C-p")    'ido-prev-match)
-  (define-key ido-completion-map (kbd "<up>")   'ido-prev-match))
-(add-hook 'ido-setup-hook 'ido-define-keys)
 
 ;; ;; Use C-w to go back up a dir to better match normal usage of C-w
 ;; ;; - insert current file name with C-x C-w instead.

   (delq nil (mapcar
              (lambda (x) (and (char-equal (string-to-char x) ?.) x))
              ido-temp-list))))


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

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