This feature is called auto-merge
. The following three options relate to that feature:
(defcustom ido-auto-merge-work-directories-length 0
"Automatically switch to merged work directories during file name input.
The value is number of characters to type before switching to merged mode.
If zero, the switch happens when no matches are found in the current directory.
Automatic merging is disabled if the value is negative."
:type 'integer
:group 'ido)
(defcustom ido-auto-merge-delay-time 0.70
"Delay in seconds to wait for more input before doing auto merge."
:type 'number
:group 'ido)
(defcustom ido-auto-merge-inhibit-characters-regexp "[][*?~]"
"Regexp matching characters which should inhibit automatic merging.
When a (partial) file name matches this regexp, merging is inhibited."
:type 'regexp
:group 'ido)
You can for example put a longer delay or disabling the feature. To disable the feature add the following statement to your .emacs
:
(setq ido-auto-merge-work-directories-length -1)
The C-z keybinding also cancels the last auto-merge
. See the following snippet from ido.el
:
(define-key map "\C-z" 'ido-undo-merge-work-directory)