Rework eglot configuration to use built-in package
This commit is contained in:
parent
f2dc1fe496
commit
6c24da4503
1 changed files with 9 additions and 3 deletions
12
config.org
12
config.org
|
|
@ -731,15 +731,21 @@ https://github.com/victorhge/iedit
|
||||||
** Eglot
|
** Eglot
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package eglot)
|
(use-package eglot
|
||||||
|
:ensure nil
|
||||||
|
:custom
|
||||||
|
(eglot-autoshutdown t)
|
||||||
|
:init
|
||||||
(setq eglot-stay-out-of '(xref))
|
(setq eglot-stay-out-of '(xref))
|
||||||
(add-hook 'prog-mode-hook 'eglot-ensure)
|
(add-hook 'prog-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'eglot-managed-mode-hook (lambda ()
|
(add-hook 'eglot-managed-mode-hook (lambda ()
|
||||||
(if (eglot-managed-p)
|
(if (eglot-managed-p)
|
||||||
(add-hook 'xref-backend-functions 'eglot-xref-backend)
|
(add-hook 'xref-backend-functions 'eglot-xref-backend)
|
||||||
(remove-hook 'xref-backend-functions 'eglot-xref-backend)
|
(remove-hook 'xref-backend-functions 'eglot-xref-backend)
|
||||||
)))
|
)))
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Markdown-mode
|
** Markdown-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue