I have plenty of files opened in my emacs daemon. In the background there is a running process which make changes on the *.yaml
files that are already opened in my emacs. I am using auto-revert-mode
in order to automatically reverts the buffer when its visited file changes on disk.
But when changes made, I keep seeing following warning message: Reverting buffer ‘<filename>.yaml’.
Would it be possible to prevent this message showing up?
setup:
(global-auto-revert-mode 1)
(setq auto-revert-use-notify nil)
(defun revert-buffer-no-confirm ()
"Revert buffer without confirmation."
(interactive)
(revert-buffer :ignore-auto :noconfirm))