Q:

Is there a function in Emacs to search the filesystem for a file by its name?

I want to open a file that is somewhere deep in my project tree.  I know the name of the file, however I don't want to go searching the tree for it.  I would like a way to enter just the file name, and have emacs search for me.  I should also be able to enter the base directory I want to start the search from, and emacs should remember that for future searches.

A:

Sounds like you are looking for the equivalent of Textmate's Command-T functionality. The closest I have found for emacs is find-file-in-project. It can be bound to C-t or a similar key for convenience: (global-set-key "\C-t" 'ido-find-file-in-tag-files)

A:

M-x find-name-dired is the built-in solution for this. The default directory changes according to the current buffer, but the minibuffer history contains the previous selections.

