mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-11 13:07:28 -05:00
Instead of using auto-revert-mode or global-auto-revert-mode, we employ lazy auto reverting on focus-in-hook, doom-switch-buffer-hook and after-save-hook. We do this because autorevert abuses inotify handles, which can grind Emacs to a halt if you have hundreds of buffers open and something performs expensive mtime or attribute-altering IO on their files outside of Emacs. We only really need revert checks when we switch to or save a buffer, or when we focus the Emacs frame.