diff options
author | Ashton Wiersdorf <ashton.wiersdorf@pobox.com> | 2023-01-19 12:28:33 -0700 |
---|---|---|
committer | Ashton Wiersdorf <ashton.wiersdorf@pobox.com> | 2023-01-19 12:28:33 -0700 |
commit | 0d0d5ce95aec430c5848650dd12110eaa07d24af (patch) | |
tree | 3bfe35d8cfb86de9e40e5b6d543b91028760e920 | |
parent | c50a1a644083c0999f9ab44fe9572c3e0ad21300 (diff) |
Add a little Eglot example config
-rw-r--r-- | mixins/dev.el | 23 |
1 files changed, 23 insertions, 0 deletions
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"))) + ) |