(ido-everywhere): Fix defcustom :set function to disable
rather than toggle mode when custom value is nil. (ido-everywhere): Fix defun doc string.
This commit is contained in:
parent
609550682f
commit
9d144e95df
1 changed files with 3 additions and 2 deletions
|
@ -367,7 +367,7 @@ use either \\[customize] or the function `ido-mode'."
|
|||
Setting this variable directly does not work. Use `customize' or
|
||||
call the function `ido-everywhere'."
|
||||
:set #'(lambda (symbol value)
|
||||
(ido-everywhere value))
|
||||
(ido-everywhere (if value 1 -1)))
|
||||
:initialize 'custom-initialize-default
|
||||
:type 'boolean
|
||||
:group 'ido)
|
||||
|
@ -1367,7 +1367,8 @@ This function also adds a hook to the minibuffer."
|
|||
(define-key map [remap display-buffer] 'ido-display-buffer)))))
|
||||
|
||||
(defun ido-everywhere (arg)
|
||||
"Enable ido everywhere file and directory names are read."
|
||||
"Toggle using ido speed-ups everywhere file and directory names are read.
|
||||
With ARG, turn ido speed-up on if arg is positive, off otherwise."
|
||||
(interactive "P")
|
||||
(setq ido-everywhere (if arg
|
||||
(> (prefix-numeric-value arg) 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue