SuDo

Searching Specific File Types in Emacs

If you’re using Emacs with consult-ripgrep (M-x consult-ripgrep), you might want to search only within certain file types—say, just .scala files in a project.

M-x consult-ripgrep RET -- -g '*.scala'
M-x consult-ripgrep RET -- -g '*.scala' -g '*.sbt'