From 0d0d5ce95aec430c5848650dd12110eaa07d24af Mon Sep 17 00:00:00 2001 From: Ashton Wiersdorf Date: Thu, 19 Jan 2023 12:28:33 -0700 Subject: Add a little Eglot example config --- mixins/dev.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/mixins/dev.el b/mixins/dev.el index 91c5aa9..a05b11b 100644 --- a/mixins/dev.el +++ b/mixins/dev.el @@ -9,6 +9,7 @@ ;;; ;;; - Version Control ;;; - Common file types +;;; - Eglot, the built-in LSP client for Emacs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; @@ -37,3 +38,25 @@ ;; You're almost certain to find a mode for the language you're looking for. ;; Search the internet to find the right one. + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Eglot, the built-in LSP client for Emacs +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(use-package eglot + ;; no :ensure t here because it's built-in + + ;; Configure hooks to automatically turn-on eglot for selected modes + ; :hook + ; ((python-mode . eglot)) + + :custom + (eglot-send-changes-idle-time 0.1) + + :config + ;; Sometimes you need to tell Eglot where to find the language server + ; (add-to-list 'eglot-server-programs + ; '(haskell-mode . ("haskell-language-server-wrapper" "--lsp"))) + ) -- cgit v1.2.3