Search and replace in multiple files in doom emacs

Crash course: if you want to search a directory, and all subdirectories, and replace, this is the shortcut, you are going to use SPC s p foo C-; E C-c C-p :%s/old/new/g RET Z Z
, if you are using vertico
. It uses embark
. C-;
is embark-act
, which is like … a right-click, that gives you are context menu, but without the right click :) E
will export what you are looking at to a new buffer, and C-c C-p
makes the search result writable. Now you can use evil
to search and replace. EASY! Z Z
will save and close.
Read other posts