Add auto-revert mode.

This commit is contained in:
Tom Alexander 2023-12-17 11:51:41 -05:00
parent f42d4c469b
commit 661b8534a8
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -75,4 +75,10 @@
;; Delete trailing whitespace before save ;; Delete trailing whitespace before save
(add-hook 'before-save-hook 'delete-trailing-whitespace) (add-hook 'before-save-hook 'delete-trailing-whitespace)
;; If the underlying file changes, reload it automatically. This is useful for moving around in git without confusing language servers.
(setopt auto-revert-avoid-polling t)
(setopt auto-revert-interval 5)
(setopt auto-revert-check-vc-info t)
(global-auto-revert-mode)
(provide 'base) (provide 'base)