Hot answers tagged

3 votes
Accepted

find files containing "Emacs"

tl;dr Do you get the expected behavior under emacs -Q? It's possible you've disabled case-insensitivity. Long answer Without knowing your arguments to find-name-dired (you should add them to your ...
nega's user avatar
  • 3,211
1 vote

How to ignore some directories with find-grep-dired?

If you use library find-dired+.el (see also Locate Files Anywhere), then you can exclude any number of paths, and you can limit the depth. find-grep-dired is an interactive compiled Lisp function in ...
Drew's user avatar
  • 77k
1 vote
Accepted

How can I recursively find and replace text in case sensetive?

As already mentioned in the comments the variable case-fold-search is buffer-local. The following line in your init file sets this variable only for the buffer to nil where the init file is evaluated: ...
Tobias's user avatar
  • 33.1k
1 vote

emacs on windows hangs when running rgrep

Looks like find . -ls (using GnuWin32 find version 4.2.20) hangs. I workaround that issue by using ezwinports find.
Stefano's user avatar
  • 91
1 vote

How do I find the init.el file on windows?

If you run M-x describe-variable user-emacs-directory or the following commands in a emacs-lisp buffer, you will find it. (find-file (expand-file-name "init.el" user-emacs-directory)) (...
sdaaish's user avatar
  • 33
1 vote

Searching in Dired for content in files while filtering files

You can try the built in find-grep-dired. From the documentation: Find files in DIR that contain matches for REGEXP and start Dired on output. Try C-h f find-grep-dired RET to know more.
Manuel Uberti's user avatar
1 vote

How can I run imenu in all project files?

My solution is way too hacky: A file that you want to have Imenu to access is likely to be tracked by Git. Use find-file-noselect on all those files (I don't know how to detect binary files with Emacs ...
Daanturo's user avatar
  • 180
1 vote

How can I do a regex search recursively from a directory?

@phils answered the question. This is just to say that the version of find-grep-dired in library find-dired+.el provides a bit more than the vanilla version: It has two optional args, DEPTH-LIMITS ...
Drew's user avatar
  • 77k
1 vote

How can I do a regex search recursively from a directory?

The following does that and presents the results as a dired buffer: M-x find-grep-dired You'll also want to know about: M-x rgrep (which doesn't support the -l option to grep, but is usually what ...
phils's user avatar
  • 50.4k
1 vote

Grep exited abnormally with code 2

Looks like you are accidentally using the MS Windows find command. You need to have a UNIX or GNU/Linux find command (and grep command). You can use Cygwin, for example. Or if you have such a ...
Drew's user avatar
  • 77k
1 vote

What best tool to find files with content?

You can try elgrep. The github version linked here already has already an option for case sensitivity. Within a day or so that version should also be available via list-packages from melpa. Some ...
Tobias's user avatar
  • 33.1k

Only top scored, non community-wiki answers of a minimum length are eligible