mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))))
|
||||
|
||||
|
Reference in New Issue
Block a user