Maybe try turning on global-auto-revert-mode
?
global-auto-revert-mode is an interactive autoloaded compiled Lisp
function in ‘autorevert.el’.
(global-auto-revert-mode &optional ARG)
Toggle Global Auto-Revert Mode.
With a prefix argument ARG, enable Global Auto-Revert Mode if ARG
is positive, and disable it otherwise. If called from Lisp,
enable the mode if ARG is omitted or nil.
Global Auto-Revert Mode is a global minor mode that reverts any
buffer associated with a file when the file changes on disk. Use
‘auto-revert-mode’ to revert a particular buffer.
My invocation of it looks like this:
(use-package autorevert
:config
;; Also auto refresh dired, but be quiet about it
(setq global-auto-revert-non-file-buffers t)
(setq auto-revert-verbose nil)
:init
(global-auto-revert-mode t))