Table of Contents
Find and replace text across multiple file in project, dired-mode or grep-mode buffer.
Project#
Run project-query-replace-regexp
in a project.
Dired#
- Mark files in dired buffer.
- Run
dired
, then mark files. - Run
find-dired
orfind-name-dired
, then mark files. - Run
consult-find
orconsult-fd
->embark-export
todired-mode
buffer, then mark files.
- Run
- Press
Q
or rundired-do-find-regexp-and-replace
.
Grep#
- Run
consult-grep
orconsult-ripgrep
->embark-export
togrep-mode
buffer. - Press
e
or rungrep-change-to-grep-edit-mode
to entergrep-edit-mode
. - Run
query-replace
orquery-replace-regexp
. - Press
C-c C-c
to exitgrep-edit-mode
.
Related
Emacs Highlight Keywords With Overlays
Use overlays to highlight a buffer’s keywords on the screen.
Color Lighten and Darken
RGB color lighten and darken in catppuccin-themes.
Emacs Garbage Collection
gcmh(aka “Garbage Collection Magic Hack”) is useful and easy to handle garbage collection for GNU Emacs.