I often use M-x replace-regexp
and M-x occur
with some fixed regexp pattern and replacement string on many files.
Doing it manually by opening each file in an Emacs buffer and hitting the keys is very tedious. I was wondering how to write an Elisp function to use as a script, which I can apply to each file?
multi-occur
. – Drew Nov 13 '18 at 15:16dired
, edits them, and goes back to it. You can move by marked files indired
withM-{
andM-}
. – user12563 Nov 13 '18 at 18:42