;;; ido-use.el --- Intelligent auto-completion (builtin package)

(use-package ido
  :init
  (setq ido-enable-flex-matching t
        ido-everywhere t)

  :config
  (ido-mode 1)
  (ido-everywhere 1)

  (setq ido-create-new-buffer 'always))  ; Let ido make new files

(use-package smex
  :config
  (smex-initialize)

  (global-set-key (kbd "M-x") 'smex)
  (global-set-key (kbd "M-X") 'smex-major-mode-commands)
  (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command))

(use-package ido-ubiquitous
  :config
  (ido-ubiquitous-mode 1))

(provide 'ido-use)

;;; ido-use.el ends here

;;; ido-use.el --- Intelligent auto-completion (builtin package)

(use-package ido
  :init
  (setq ido-enable-flex-matching t
        ido-everywhere t)

  :config
  (ido-mode 1)
  (ido-everywhere 1)

  (setq ido-create-new-buffer 'always))  ; Let ido make new files

(use-package smex
  :config
  (smex-initialize)

  (global-set-key (kbd "M-x") 'smex)
  (global-set-key (kbd "M-X") 'smex-major-mode-commands)
  (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command))

(use-package ido-ubiquitous
  :config
  (ido-ubiquitous-mode 1))

(use-package recentf
  :config
  (recentf-mode 1)

  (defun ido-use/recentf-ido-find-file ()
    "Open list of most recently used files with ido."
    (interactive)
    (let ((file (ido-completing-read "Recent file: " recentf-list nil t)))
      (when file
        (find-file file))))

  (global-set-key (kbd "C-x C-r") 'ido-use/recentf-ido-find-file)

  (setq recentf-max-saved-items 50))

(provide 'ido-use)

;;; ido-use.el ends here

Add ability to open recently used files with ido
Add ability to open recently used files with ido

strburst/dotfiles