1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Disable ido-everywhere when ido-mode is off

* lisp/ido.el (ido-mode): Disable the effects of 'ido-everywhere'
when ido-mode is turned off.
This commit is contained in:
Dmitry Gutov 2020-05-22 03:37:56 +03:00
parent 3a7894ecd1
commit 813e42c63b

View file

@ -1549,7 +1549,7 @@ This function also adds a hook to the minibuffer."
((> (prefix-numeric-value arg) 0) 'both)
(t nil)))
(ido-everywhere (if ido-everywhere 1 -1))
(ido-everywhere (if (and ido-mode ido-everywhere) 1 -1))
(when ido-mode
(ido-common-initialization)