all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Text search from emacs
@ 2024-12-14  0:14 Heime via Users list for the GNU Emacs text editor
  2024-12-14  6:06 ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-14  0:14 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


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? 




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Text search from emacs
  2024-12-14  0:14 Text search from emacs Heime via Users list for the GNU Emacs text editor
@ 2024-12-14  6:06 ` Jean Louis
  2024-12-14  7:26   ` expand-region for =org emphasis= Samuel Wales
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Louis @ 2024-12-14  6:06 UTC (permalink / raw)
  To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor

* 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 🤣.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* expand-region for =org emphasis=
  2024-12-14  6:06 ` Jean Louis
@ 2024-12-14  7:26   ` Samuel Wales
  2024-12-14  9:09     ` Jean Louis
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2024-12-14  7:26 UTC (permalink / raw)
  To: Heime, Heime via Users list for the GNU Emacs text editor

Is it possible to make expand-region.el treat =cat cat.txt= as if it
were "cat cat.txt"?  AI or gptel.el print the former, and expand
region selects the whole thing.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: expand-region for =org emphasis=
  2024-12-14  7:26   ` expand-region for =org emphasis= Samuel Wales
@ 2024-12-14  9:09     ` Jean Louis
  0 siblings, 0 replies; 4+ messages in thread
From: Jean Louis @ 2024-12-14  9:09 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Heime, Heime via Users list for the GNU Emacs text editor

* Samuel Wales <samologist@gmail.com> [2024-12-14 10:28]:
> Is it possible to make expand-region.el treat =cat cat.txt= as if it
> were "cat cat.txt"?  AI or gptel.el print the former, and expand
> region selects the whole thing.

Where is that expand-region.el ?

-- 
Jean Louis



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-14  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-14  0:14 Text search from emacs Heime via Users list for the GNU Emacs text editor
2024-12-14  6:06 ` Jean Louis
2024-12-14  7:26   ` expand-region for =org emphasis= Samuel Wales
2024-12-14  9:09     ` Jean Louis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.