Browse Source

libkookie: improve rust-mode with yas autoloading

main
Katharina Fey 2 months ago
parent
commit
b2723e06ac
Signed by: kookie GPG Key ID: 90734A9E619C8A6C
  1. 3
      infra/libkookie/overlays/kookie/emacs/rust/default.el
  2. 2
      infra/libkookie/shells/rust/stable/default.nix

3
infra/libkookie/overlays/kookie/emacs/rust/default.el

@ -20,6 +20,9 @@
;;; Start lsp mode for Rust buffers
(add-hook 'rust-mode-hook #'lsp)
;;; Start the yas-minor-mode for Rust buffers
(add-hook 'rust-mode-hook #'yas-minor-mode)
;;; Use projectile to find project roots
(projectile-mode t)
(setq lsp-auto-guess-root t)

2
infra/libkookie/shells/rust/stable/default.nix

@ -4,4 +4,6 @@ import <shells/base.nix> "rust-stable" (pkgs: with pkgs; [
cargo-watch
clangStdenv
rust-analyzer
cargo-expand
clippy
])
Loading…
Cancel
Save