Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smex forces ido-max-prospects 10 #57

Open
arkrost opened this issue Apr 20, 2016 · 1 comment
Open

Smex forces ido-max-prospects 10 #57

arkrost opened this issue Apr 20, 2016 · 1 comment

Comments

@arkrost
Copy link

arkrost commented Apr 20, 2016

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).

@zumbalogy
Copy link

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))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants