Emacs 26.3 Linux Mint 19.3
I work with my Google drive. I want to disable auto reverting mode for remote files. Is it possible?
Emacs 26.3 Linux Mint 19.3
I work with my Google drive. I want to disable auto reverting mode for remote files. Is it possible?
Set auto-revert-remote-files
to nil
. This disables auto reverting for all files with Tramp syntax.
If you want to disable auto reverting of remote files in a mounted directory, or in a sync directory, add that directory name to auto-revert-notify-exclude-dir-regexp
.
You could use C-hv global-auto-revert-ignore-buffer
with C-hv find-file-hook
(defun my-inhibit-remote-auto-revert ()
"Used in `find-file-hook'."
(when (file-remote-p buffer-file-name)
(setq global-auto-revert-ignore-buffer t)))
(add-hook 'find-file-hook #'my-inhibit-remote-auto-revert)