Created
December 3, 2020 07:56
-
-
Save samwhitlock/c4f0dd94a7c38c922c390c95ad249583 to your computer and use it in GitHub Desktop.
Simple way to auto-revert in dired
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment