From ac7b2ca8ea206e60baf8f5c60fe9bf03c22b5b54 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 28 Nov 2021 09:13:11 -0500 Subject: Drop racer for eglot + rust-analyzer --- lisp/programming.el | 6 ++++++ lisp/programming/rust.el | 22 ++-------------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/lisp/programming.el b/lisp/programming.el index 66ddd73..9a53400 100644 --- a/lisp/programming.el +++ b/lisp/programming.el @@ -157,3 +157,9 @@ (setq shr-use-colors nil) (setq shr-use-fonts nil) (setq eww-header-line-format nil) + +;; The last time I tried `lsp-mode', I was unhappy with the sheer amount of +;; stuff that was included. So I use `eglot' instead. Thus far, it's been a +;; pleasant experience. + +(use-package eglot) diff --git a/lisp/programming/rust.el b/lisp/programming/rust.el index 6e4e43b..a192fc4 100644 --- a/lisp/programming/rust.el +++ b/lisp/programming/rust.el @@ -7,28 +7,10 @@ ;;; language. ;;; -;; Enable flycheck. - -(use-package flycheck-rust - :after rust-mode - :hook - (flycheck-mode . flycheck-rust-setup) - (rust-mode . flycheck-mode)) - -;; Enable company, ElDoc, and racer. - -(use-package racer - :init - (setq racer-cmd "~/.cargo/bin/racer") - (setq racer-rust-src-path "~/Code/rust/src") - - :hook - (racer-mode . eldoc-mode) - (racer-mode . company-mode)) - (use-package rust-mode :hook - (rust-mode . racer-mode) + (rust-mode . eglot-ensure) + (rust-mode . company-mode) ;; Run 'rustfmt' automatically. :init -- cgit v1.3