mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08: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:
parent
bff2ccd974
commit
62f1df4218
1 changed files with 5 additions and 1 deletions
|
|
@ -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))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue