about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T13·23+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T13·23+0100
commit1086072d3df1c5d5be39c82206ea3600a7c30950 (patch)
treecc0181d7e2ab3494ab2594bd832d03645d14f70f /tools
parent62c18c989890d5aebca5315f7bf7d8a367b0a87b (diff)
feat(tools/emacs): Configure eglot to shut down automatically r/764
When all buffers related to a specific eglot instance are gone, eglot
can shut down.
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/emacs/config/init.el b/tools/emacs/config/init.el
index 6d276a965685..96778ef3c0c5 100644
--- a/tools/emacs/config/init.el
+++ b/tools/emacs/config/init.el
@@ -50,6 +50,12 @@
   :config (dottime-display-mode t))
 
 (use-package gruber-darker-theme)
+
+(use-package eglot
+  :custom
+  (eglot-autoshutdown t)
+  (eglot-send-changes-idle-time 0.3))
+
 (use-package ht)
 (use-package hydra)
 (use-package idle-highlight-mode :hook ((prog-mode . idle-highlight-mode)))