mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user