When i want to create a new file with C-x C-f
(ido-find-file
), and type main.lua
, Emacs does not create a new file in the current directory (default-directory
). Instead, it visits an existing main.lua
which is in another directory.
Similarly when I want to create a new directory src
, instead of creating a new directory Emacs visits a src
directory in another project.
This means I can never create a new file or a new directory.
I've installed the package tree-emacs
. I have the same problem when I right-click a tree-emacs buffer and try to create a new file or a new directory - Emacs visits an existing file or directory which I do not want.
How can I stop Emacs from looking outside the current directory for an existing file or dir, instead of creating a buffer for a new one in the current directory?