Here are my preferences, FWIW: I do not use auto-revert. Instead, I bind f5 to this command:
(defun revert-buffer-no-confirm ()
"Revert buffer without confirmation."
(interactive) (revert-buffer tt))
That sounds silly, but this simple change makes all the difference. This is what f5 does anyway on MS Windows, so this habit works in all applications (on Windows).
Please note that I do not change (e.g. reassign) any bindings for revert-buffer . I use this only when I clearly want to return without confirmation (which is pretty common in practice).
NTN.
Drew
source share