From aaa0fbad927d5700bb682839e0904f6b5b996747 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Mon, 12 Aug 2024 13:56:33 -0300 Subject: emacs: ensure eglot when rust --- .emacs.d/rul-lisp/packages/rul-prog.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.emacs.d/rul-lisp/packages/rul-prog.el') diff --git a/.emacs.d/rul-lisp/packages/rul-prog.el b/.emacs.d/rul-lisp/packages/rul-prog.el index eb9c676..8525883 100644 --- a/.emacs.d/rul-lisp/packages/rul-prog.el +++ b/.emacs.d/rul-lisp/packages/rul-prog.el @@ -16,4 +16,11 @@ ;; YAML (use-package yaml-mode :ensure t :defer t) +;; Rust +(use-package rust-mode + :init + (setq rust-mode-treesitter-derive t)) + +(add-hook 'rust-mode-hook 'eglot-ensure) + (provide 'rul-prog) -- cgit v1.2.3