Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cask
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
(source melpa)

(package-file "smex.el")

(depends-on "ido-completing-read+")
8 changes: 5 additions & 3 deletions smex.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
;;
;; Author: Cornelius Mika <cornelius.mika@gmail.com> 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.

Expand All @@ -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."
Expand Down Expand Up @@ -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)
Expand Down