fix(editor): disable auto-revert-mode's use of file notifications on macOS

Relying on file notifications to detect changes on disk and auto-revert
buffers seems unreliable on macOS, so let's disable the use of file
notifications, and let auto-revert-mode use polling instead.
This commit is contained in:
2021-11-10 10:31:17 +00:00
parent 359fbec8e9
commit 78cb7fcd04

View File

@@ -64,6 +64,9 @@
;; revert buffers automatically when underlying files are changed externally
(global-auto-revert-mode t)
(when (eq system-type 'darwin)
;; File notifications seem unreliable on macOS.
(setq auto-revert-use-notify nil))
;; diminish keeps the modeline tidy
(use-package diminish)