Can we make ff-find-other-file to search recursively in directories which are listed in ff-search-directories.
Instead of searching only in /usr/include, it would also search in /usr/include/llvm. Or likewise.
Can we make ff-find-other-file to search recursively in directories which are listed in ff-search-directories.
Instead of searching only in /usr/include, it would also search in /usr/include/llvm. Or likewise.
Add a
/*
after the directories where you want subdirectories searched. So setff-search-directories
so that it contains"/usr/include/*"
.I've added this function to my
.emacs
file:And, in my
c-mode-common-hook
, I have this:This assumes you have a standard Unix
find
command in yourPATH
. If you're on Windows, you can get a copy offind
here: http://unxutils.sourceforge.net/It takes a little while to run if you have many directories for it to recurse through.