                         (ido-completing-read
                          "M-x " (all-completions "" obarray 'commandp)))))))
   ;; for recentf
-  (unless (featurep 'uniquify-recentf)
-    (defun recentf-ido-find-file()
-      "Find a recent file using ido."
-      (interactive)
-      (let ((file (ido-completing-read
-                   "Choose recent file:"
-                   recentf-list nil t)))
-        (when file (find-file file))))
-    (global-set-key "\er" 'recentf-ido-find-file))
+  ;; (unless (featurep 'uniquify-recentf)
+  ;;   (defun recentf-ido-find-file()
+  ;;     "Find a recent file using ido."
+  ;;     (interactive)
+  ;;     (let ((file (ido-completing-read
+  ;;                  "Choose recent file:"
+  ;;                  recentf-list nil t)))
+  ;;       (when file (find-file file))))
+  ;;   (global-set-key "\er" 'recentf-ido-find-file))
   )
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ace-window ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Author: Dan Harms <danielrharms@gmail.com>
;; Created: Friday, February 27, 2015
;; Version: 1.0
;; Modified Time-stamp: <2016-03-28 17:06:51 dan.harms>
;; Modified by: Dan Harms
;; Keywords:


  )

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; uniquify-recentf ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar uniquify-recentf-func 'recentf-open-files
  "Select recent files from `recentf' via a completion function.")
(defun my/call-recentf-func () (interactive) (funcall uniquify-recentf-func))
(use-package uniquify-recentf
  :bind ("M-r" . my/call-recentf-func)
  :commands uniquify-recentf-ivy-recentf-open uniquify-recentf-ido-recentf-open
  :if (version< "24.3" emacs-version)
  :config
  (setq uniquify-recentf-func 'uniquify-recentf-ido-recentf-open)
  )

