From 78cb7fcd049bfbef99f7121813eddef4b83a669d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 10 Nov 2021 10:31:17 +0000 Subject: [PATCH] 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. --- core/siren-core-editor.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/siren-core-editor.el b/core/siren-core-editor.el index b45e7da..db2c311 100644 --- a/core/siren-core-editor.el +++ b/core/siren-core-editor.el @@ -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)