configs/emacs: add rust-mode and fire off eglot when we are there
This commit is contained in:
parent
50c2b13205
commit
f240652ba8
@ -123,6 +123,11 @@ here.
|
|||||||
|
|
||||||
* Packages
|
* Packages
|
||||||
|
|
||||||
|
** rust-mode
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package rust-mode)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** uxntal
|
** uxntal
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -238,13 +243,14 @@ auto-completion stuff.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:config
|
:config
|
||||||
(add-hook 'go-mode-hook 'eglot-ensure)
|
|
||||||
(add-hook 'elm-mode-hook 'eglot-ensure)
|
(add-hook 'elm-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'nix-mode-hook 'eglot-ensure)
|
(add-hook 'go-mode-hook 'eglot-ensure)
|
||||||
(add-hook 'typescript-mode-hook 'eglot-ensure)
|
|
||||||
(add-hook 'ruby-mode-hook 'eglot-ensure)
|
|
||||||
(add-hook 'perl-mode-hook 'eglot-ensure)
|
|
||||||
(add-hook 'haskell-mode-hook 'eglot-ensure)
|
(add-hook 'haskell-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'nix-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'perl-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'ruby-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'rust-mode-hook 'eglot-ensure)
|
||||||
|
(add-hook 'typescript-mode-hook 'eglot-ensure)
|
||||||
|
|
||||||
(add-to-list 'eglot-server-programs '(c-mode . ("clangd")))
|
(add-to-list 'eglot-server-programs '(c-mode . ("clangd")))
|
||||||
(add-to-list 'eglot-server-programs '(c++-mode . ("clangd")))
|
(add-to-list 'eglot-server-programs '(c++-mode . ("clangd")))
|
||||||
|
Loading…
Reference in New Issue
Block a user