diff --git a/Cask b/Cask index db6da62..44a5d97 100644 --- a/Cask +++ b/Cask @@ -2,3 +2,5 @@ (source melpa) (package-file "smex.el") + +(depends-on "ido-completing-read+") diff --git a/smex.el b/smex.el index 6d4a72b..937dd73 100644 --- a/smex.el +++ b/smex.el @@ -4,9 +4,10 @@ ;; ;; Author: Cornelius Mika and contributors ;; URL: http://github.com/nonsequitur/smex/ -;; Package-Requires: ((emacs "24")) +;; Package-Requires: ((emacs "24") (ido-completing-read+ "3.0")) ;; Version: 3.0 ;; Keywords: convenience, usability +;; Package-Requires: ((ido-completing-read+ "0")) ;; This file is not part of GNU Emacs. @@ -28,6 +29,7 @@ ;;; Code: (require 'ido) +(require 'ido-completing-read+) (defgroup smex nil "M-x interface with Ido-style fuzzy matching and ranking heuristics." @@ -135,8 +137,8 @@ Set this to nil to disable fuzzy matching." (ido-enable-flex-matching smex-flex-matching) (ido-max-prospects 10) (minibuffer-completion-table choices)) - (ido-completing-read (smex-prompt-with-prefix-arg) choices nil nil - initial-input 'extended-command-history (car choices)))) + (ido-completing-read+ (smex-prompt-with-prefix-arg) choices nil t + initial-input 'extended-command-history))) (defun smex-prompt-with-prefix-arg () (if (not current-prefix-arg)