Windows 10, Emacs 25.1

If I want to find file in Helm I use command helm-find-files. Suppose I want to find in current folder all files with extenstion *.gradle.

Here result:

Find all files with extension gradle in current folder

OK. It's work.

But now I want to find all files with extension *.gradle not only in current folder, but also in all subfolders (recursive). How I can do this by command helm-find-files?


3 Answers 3


Just type TAB, input shell and RET use Find shell command to find files with filename recursively.

Or simply C-c /

  • Strange name for an action. It probably should read, "Find files using find" or something.
    – x-yuri
    Oct 19, 2021 at 8:19

Instead of doing this with helm-find-files, you could do it with helm-find. helm-find has the same fuzzy match but searches the directories recursively. It is smart in avoiding some not useful files / directories (like .git/ etc).

Just make sure you have find program installed on your machine. It comes by default on Unix based machines. On Windows, have git bash installed. Set Git bash to your default shell and then set the complete path of find to find-program variable in your .emacs file.

If you want to search from your default-directory. The standard shortcut is: C-x c /.

If you want to parameterize it with a different directory:

C-u C-x c /
<The directory to start search from> <RET>
<Your search string>

  • 1
    the second keybinding shd read C-u C-x c /.
    – martian
    Jul 18, 2020 at 10:02
  • @mooseface, Thank you. Edited with the fix. Jul 18, 2020 at 10:04
  • I want to create a function that uses helm-find-files or helm-find in a specific directory recursively. Is this possible? Jun 22, 2022 at 19:34

This will do what you want:

(defun my/helm-find-file-recursively ()  
  "Recursively find files in glob manner, in the specified directory."
  (helm-find 'ask-for-dir))

(global-set-key (kbd "C-c o f") 'my/helm-find-file-recursively)
  • Isn't this what is available out of the box? C-u C-x c /. See the other answer
    – x-yuri
    Jan 31, 2022 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.