Status update 2020-07-11: I will be without Internet access for the foreseeable future, starting from 2020-07-12. Please understand that I will only reply to your messages whenever I manage to get back. That may be in a few weeks from now or longer. It all depends on whether I secure enough income amidst the ongoing crisis. Apologies in advance for whatever inconvenience.

Search+Replace across multiple files in Emacs

In this video I demonstrate a few techniques to replace search matches across a number of files or buffers, using a variety of tools. The tools I use involve:

  • counsel-git-grep, which is powered by the ivy completion framework and which can edit its output with wgrep.
  • ivy-switch-buffer, followed by ibuffer and occur.
  • dired, followed by an interface that looks like that of occur.

Other commands where query-replace and keyboard macros.


For my setup check my dotemacs. The theme used in this video is “Modus Operandi” (modus-operandi-theme) which is available on MELPA. For more, check the Modus themes on GitLab.