How can I get GNU Emacs to automatically save all the files I've changed after doing a multi-file search/replace with query-replace-regexp? Right now I have to switch back to the buffer for every individual file and save by hand whenever I do multi-file search and replace, which is just plain annoying.
1 Answer
You could trigger save-buffer
after the replace. I believe the following should work:
(add-hook 'replace-update-post-hook 'save-buffer)
save-some-buffers
(bound toC-x s
in vanilla emacs) will save you some time.