summaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-init.el
diff options
context:
space:
mode:
authorTimo Wilken2023-01-19 23:51:14 +0100
committerTimo Wilken2023-01-19 23:51:14 +0100
commitbb19bc0e26967652374e024b43dc40c57c096c04 (patch)
tree71404d2e18f8beff5cfe9683043d21704c3ab541 /tw/home/files/emacs-init.el
parentd2db11a63041bb9b9e2d185f87b9478fcc1a81df (diff)
Fix eglot setup
Diffstat (limited to 'tw/home/files/emacs-init.el')
-rw-r--r--tw/home/files/emacs-init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el
index 2e4ff9f9..d284f2c4 100644
--- a/tw/home/files/emacs-init.el
+++ b/tw/home/files/emacs-init.el
@@ -226,7 +226,8 @@
(use-package eglot
;; I have clang (for clangd) and python-lsp-server installed.
;; `:hook' adds `-mode' to the package name, but `eglot-mode' doesn't exist.
- :hook ((python-mode c-mode c++-mode) . eglot)
+ :hook ((python-mode c-mode c++-mode) . eglot-ensure)
+ :commands (eglot)
:custom
(eglot-autoshutdown t "Shut down language servers after deleting their last associated buffer.")
(eglot-sync-connect 0.1 "Wait for the language server in the background if it takes longer than 100ms.")