Reputation: 7683
I use ido mode. Here is how I set in .emacs
(require 'ido)
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(ido-mode t)
When I open a file, I do C-x C-f my_file
and if it doesn't exist in current directory, emacs will try to search for it in other recent used directories in about a second. However, most of the time I was just trying to create new files. I had to type the file name really fast and then C-j to confirm it. How can I stop ido from doing this?
Upvotes: 41
Views: 4302
Reputation: 7683
I found an easy solution:
(setq ido-auto-merge-delay-time 9)
The time here is in seconds. I could set a very large number to completely disable this feature.
Upvotes: 12
Reputation: 871
Here is another option using Ido:
find-file
functionality.You can then type the file name you want and Emacs will create a new buffer. So, if you type C-x C-f C-f file_name
RET it will create a buffer called file_name
temporarily in the current directory.
Upvotes: 16
Reputation: 56595
The following will completely disable the feature:
(setq ido-auto-merge-work-directories-length -1)
I've never seen any value in it, so disabling it completely might make sense for a lot of people.
Upvotes: 42