adding some tweaks to rustic and adding harper

This commit is contained in:
Chris Cochrun 2024-10-08 10:32:15 -05:00
parent 7db5aa7faf
commit c723d61a2c
2 changed files with 7 additions and 0 deletions

View file

@ -3691,6 +3691,9 @@ LSP is useful...
#+end_src
*** Eglot
:PROPERTIES:
:ID: 20241005T144217.126103
:END:
Let's give eglot a try.
#+begin_src emacs-lisp
(use-package eglot
@ -3701,6 +3704,7 @@ Let's give eglot a try.
(rust-mode . eglot-ensure)
(rustic-mode . eglot-ensure)
(rust-ts-mode . eglot-ensure)
(text-mode . eglot-ensure)
:config
(defun chris/eglot-capf ()
@ -3711,6 +3715,7 @@ Let's give eglot a try.
#'cape-file))))
(add-hook 'eglot-managed-mode-hook #'chris/eglot-capf)
(add-to-list 'eglot-server-programs '(org-mode . ("harper-ls" "--stdio")))
:general
(general-def 'normal eglot-mode-map

View file

@ -2681,6 +2681,7 @@ targets."
(rust-mode . eglot-ensure)
(rustic-mode . eglot-ensure)
(rust-ts-mode . eglot-ensure)
(text-mode . eglot-ensure)
:config
(defun chris/eglot-capf ()
@ -2691,6 +2692,7 @@ targets."
#'cape-file))))
(add-hook 'eglot-managed-mode-hook #'chris/eglot-capf)
(add-to-list 'eglot-server-programs '(org-mode . ("harper-ls" "--stdio")))
:general
(general-def 'normal eglot-mode-map