Emacs Find All Files
Here's another bit of code I started using recently. I often find
myself wanting to open — or reopen
kill-matching-buffers — all the files under a
specific point in the file system. I'm using it at work now to open up
all the source files in a deep Java source tree on small-ish
project. Once it's all open I can switch to any file quickly
ido's fuzzy matching, flattening out the directory structure a
bit. (And the ridiculous "security" software at work imposes a
3-second I/O block when opening files, so I get to pay this all up
front at once rather than having it later
This just recursively travels down the sub-directories opening a buffer for everything it comes across. It ignores dot-files, like the ones your source control might litter.
One caveat: if you have a symbolic link that creates a file system loop, this will probably get hung on it.