From f240652ba86edfd9fb9a362e05130941c8db989d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 16 Aug 2024 07:02:46 -0600 Subject: [PATCH] configs/emacs: add rust-mode and fire off eglot when we are there --- configs/emacs.org | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/configs/emacs.org b/configs/emacs.org index f6b11cc..5d323b7 100644 --- a/configs/emacs.org +++ b/configs/emacs.org @@ -123,6 +123,11 @@ here. * Packages +** rust-mode +#+begin_src emacs-lisp + (use-package rust-mode) +#+end_src + ** uxntal #+begin_src emacs-lisp @@ -238,13 +243,14 @@ auto-completion stuff. #+begin_src emacs-lisp (use-package eglot :config - (add-hook 'go-mode-hook 'eglot-ensure) (add-hook 'elm-mode-hook 'eglot-ensure) - (add-hook 'nix-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 'go-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")))