This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun quiet-auto-revert () | |
"A hook to run for buffers you want to revert automatically and silently" | |
(auto-revert-mode 1) | |
(setq-local auto-revert-verbose nil)) | |
;; you can also make auto-revert-verbose nil globally, but I like to avoid global changes if I can | |
(add-hook 'dired-mode-hook #'quiet-auto-revert t nil) | |
;; you can add this to any other mode's hook, as it will be compatible |