How to disable Emacs from checking the buffer file was changed outside the editor?
In my case I wanted:
(setq revert-without-query '(".*"))
Documentation for revert-without-query
:
Specify which files should be reverted without query.
The value is a list of regular expressions.
If the file name matches one of these regular expressions,
then ‘revert-buffer’ reverts the file without querying
if the file has changed on disk and you have not edited the buffer.