diff options
Diffstat (limited to 'tw/home/files')
-rw-r--r-- | tw/home/files/emacs-init.el | 3 |
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.") |