help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text search from emacs


From: Jean Louis
Subject: Re: Text search from emacs
Date: Sat, 14 Dec 2024 09:06:35 +0300
User-agent: Mutt/2.2.12 (2023-09-09)

* Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> 
[2024-12-14 03:16]:
> 
> How can I do a search for some text in some directory from emacs?
> Perhaps one can write an elisp function to conveniently do this? 

You can use the `rgrep` command in Emacs to search for text in a
directory and its subdirectories.

- Type `M-x rgrep` and press RET, follow prompts

This function uses the `rgrep` command, which uses `grep` under the
hood. 

Though there are other ways, like `M-x grep` or even `M-x find-dired`

You have it under Menu Tools, look there.

-- 
Jean Louis

Emacs is so customizable that you can spend hours tweaking it and still not 
have written a single line of code 🤣.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]