diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/init-programming.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/init-programming.el b/config/init-programming.el index f90aaf1..cd983f0 100644 --- a/config/init-programming.el +++ b/config/init-programming.el @@ -69,6 +69,7 @@ ("C-c l f" . eglot-format-buffer)) :hook ((go-mode . eglot-ensure) (python-mode . eglot-ensure) + (rust-mode . eglot-ensure) (nix-mode . eglot-ensure)) :custom (eglot-send-changes-idle-time 0.1) @@ -127,6 +128,19 @@ (use-package ruby-mode) +(use-package rust-mode + :ensure t + :defer t + :custom + (rust-format-on-save t)) + +(use-package cargo-mode + :ensure t + :defer t + :hook (rust-mode . cargo-minor-mode) + :custom + (compilation-scroll-output t)) + ;;; flymake related configuration (use-package flymake :ensure nil |