Use Emacs DIRED and keyboard macros
Complex operations on grouped files
In this screen cast I showcase the potential of combining
built-in Emacs file manager, with keyboard macros. This allows us to
perform an arbitrary number of tasks in a collection of files that are
grouped together as a directory or dynamically (with search tools like
The idea is that we can use keyboard macros to perform changes visually across all our files, without having to think about complex regular expressions for the necessary search+replace actions.
And here is my own config file, with tweaks for Dired and others: protesilaos.com/dotemacs.