fix: respect auto-revert-remote-files

Don't auto-revert remote buffers if auto-revert-remote-files is nil (the
default).
This commit is contained in:
Henrik Lissner
2025-04-22 20:20:57 -04:00
parent bff2ccd974
commit 62f1df4218

View File

@ -282,7 +282,11 @@ tell you about it. Very annoying. This prevents that."
;; single frame?).
(defun doom-auto-revert-buffer-h ()
"Auto revert current buffer, if necessary."
(unless (or auto-revert-mode (active-minibuffer-window))
(unless (or auto-revert-mode
(active-minibuffer-window)
(and buffer-file-name
auto-revert-remote-files
(file-remote-p buffer-file-name nil t)))
(let ((auto-revert-mode t))
(auto-revert-handler))))