Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: disable automatic file search in ido mode

Tags:

emacs

ido-mode

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?

like image 209
woodings Avatar asked Aug 01 '13 05:08

woodings


1 Answers

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.

like image 60
Bozhidar Batsov Avatar answered Oct 05 '22 03:10

Bozhidar Batsov