Add auto-revert mode.
This commit is contained in:
parent
f42d4c469b
commit
661b8534a8
@ -75,4 +75,10 @@
|
||||
;; Delete trailing whitespace before save
|
||||
(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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user