14 Jul 2026
Search and replace across multiple documents in Emacs
This is not something I do every day, so I end up forgetting it and having to relearn it again. Here's a workflow based on consultāripgrep and Embark.
consult-ripgrepto search across the filesCtrl-.to activate EmbarkEto export the list of matchesCtrl-c Ctrl-pto runwgrep-change-to-wgrep-modeand enter edit mode- Once I'm satisfied,
Ctrl-x Ctrl-sto save each of the involved buffers
Tags: