diff --git a/config.org b/config.org index b0eaa58..edef0aa 100644 --- a/config.org +++ b/config.org @@ -586,13 +586,17 @@ #+end_src ** Rust - I never really use Rust without Cargo, so always turn on the minor - mode for Cargo in Rust buffers. + + =rust-mode= provides basic support: #+begin_src emacs-lisp (use-package rust-mode) - (use-package cargo) - (add-hook 'rust-mode-hook 'cargo-minor-mode) + #+end_src + + Then =rust-analyzer= via LSP does the rest :) + + #+begin_src emacs-lisp + (add-hook 'rust-mode-hook #'lsp-deferred) #+end_src ** Lisps @@ -927,6 +931,15 @@ (use-package meson-mode) #+end_src +*** Cargo + I never really use Rust without Cargo, so always turn on the minor + mode for Cargo in Rust buffers. + + #+begin_src emacs-lisp + (use-package cargo) + (add-hook 'rust-mode-hook 'cargo-minor-mode) + #+end_src + * Backup and Autosave ** Keep $PWD Tidy Emacs' default behaviour of dumping temporary files in the current