Skip to content

Instantly share code, notes, and snippets.

@samwhitlock
Created December 3, 2020 07:56
Show Gist options
  • Save samwhitlock/c4f0dd94a7c38c922c390c95ad249583 to your computer and use it in GitHub Desktop.
Save samwhitlock/c4f0dd94a7c38c922c390c95ad249583 to your computer and use it in GitHub Desktop.
Simple way to auto-revert in dired
(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