aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshton Wiersdorf <mail@wiersdorf.dev>2023-11-07 00:27:50 -0700
committerAshton Wiersdorf <mail@wiersdorf.dev>2023-11-07 00:27:50 -0700
commit96a69db3a9392bbb30a16f5028d12de95b9632a5 (patch)
tree6e50923382ca0bfc121b59e45923f3e68e7dca45
parent72db2833f28577fda968380c3765d873693251f7 (diff)
Use fs notifications when possible, slow down auto-revert polling
Closes #11 Thanks to Jeff Johnson for suggesting this improvement!
-rw-r--r--init.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/init.el b/init.el
index b978489..468eb95 100644
--- a/init.el
+++ b/init.el
@@ -49,7 +49,10 @@
(setq display-time-default-load-average nil) ; this information is useless for most
;; Automatically reread from disk if the underlying file changes
-(setq auto-revert-interval 1)
+(customize-set-variable 'auto-revert-avoid-polling t)
+;; Some systems don't do file notifications well; see
+;; https://todo.sr.ht/~ashton314/emacs-bedrock/11
+(setq auto-revert-interval 5)
(setq auto-revert-check-vc-info t)
(global-auto-revert-mode)
@@ -118,8 +121,10 @@ If the new path's directories does not exist, create them."
(keymap-set minibuffer-mode-map "TAB" 'minibuffer-complete) ; TAB acts more like how it does in the shell
-;; For a fancier built-in completion option, try ido-mode or fido-mode. See also
-;; the file extras/base.el
+;; For a fancier built-in completion option, try ido-mode,
+;; icomplete-vertical, or fido-mode. See also the file extras/base.el
+
+;(icomplete-vertical-mode)
;(fido-vertical-mode)
;(setq icomplete-delay-completions-threshold 4000)