smex icon indicating copy to clipboard operation
smex copied to clipboard

Smex forces ido-max-prospects 10

Open arkrost opened this issue 8 years ago • 1 comments

Hi!

smex-completing-read overrides ido-max-prospects with 10 and it is not customizable. I'm not sure if it's reasonable to ignore user ido customization (for example, I preffer when ido-max-prospects is 3). I think it should be customizable at least (maybe with smex-max-prospects).

arkrost avatar Apr 20 '16 06:04 arkrost

If you have the following code in your emacs config files, you can override it. I agree that it should probably be a variable to override.

(require 'smex)

(defun smex-completing-read (choices initial-input)
  (let ((ido-completion-map ido-completion-map)
        (ido-setup-hook (cons 'smex-prepare-ido-bindings ido-setup-hook))
        (ido-enable-prefix nil)
        (ido-enable-flex-matching smex-flex-matching)
        (ido-max-prospects 100) ; Only change from default
        (minibuffer-completion-table choices))
    (ido-completing-read (smex-prompt-with-prefix-arg) choices nil nil
                         initial-input 'extended-command-history (car choices))))

zumbalogy avatar Dec 22 '17 06:12 zumbalogy