summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-programming.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-03-09 14:44:02 +0000
committerjao <jao@gnu.org>2026-03-09 14:44:02 +0000
commitf6b6191fd84dc3404b589acf95192cd94ebd5ae5 (patch)
treedb0d2246b0eea1ee1a37d3890fd0424e44d627f0 /custom/jao-custom-programming.el
parent6fbc5dbf4e6a4c003c9ef8d80444ccdb8d5e183b (diff)
downloadelibs-f6b6191fd84dc3404b589acf95192cd94ebd5ae5.tar.gz
elibs-f6b6191fd84dc3404b589acf95192cd94ebd5ae5.tar.bz2
rust ergonomymain
Diffstat (limited to 'custom/jao-custom-programming.el')
-rw-r--r--custom/jao-custom-programming.el13
1 files changed, 10 insertions, 3 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index 6fa5221..6106e9a 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -304,6 +304,8 @@
;;;; Rust
+(use-package jao-rust :demand t)
+
(use-package rust-mode
:ensure t
:demand t
@@ -319,7 +321,7 @@
(setq-local completion-styles '(basic substring partial-completion emacs22)))
:bind (:map rust-mode-map
- ("<f3>" . hs-toggle-hiding)
+ ("C-c C" . jao-rust-open-cargo)
("C-c a" . eglot-code-actions)
("C-c m" . jao-transient-flymake)
("C-c r" . eglot-rename)
@@ -334,9 +336,14 @@
:config
(jao-define-attached-buffer '(major-mode . rustic-compilation-mode) 25)
:custom
- (rustic-cargo-use-last-stored-arguments t)
+ (rustic-cargo-use-last-stored-arguments nil)
(rustic-analyzer-command '("rust-analyzer"))
- :bind (:map rustic-mode-map (("C-c C-c d" . rustic-cargo-build-doc))))
+ (rustic-cargo-test-runner 'nextest)
+ (rustic-cargo-nextest-exec-command '("nextest" "run" "--color=never" "--show-progress=none"))
+ :bind (:map rustic-mode-map (("C-c d" . rustic-cargo-build-doc)
+ ("C-c t w" . jao-rust-test-workspace)
+ ("C-c t m" . jao-rust-test-module)
+ ("C-c t t" . rustic-cargo-current-test))))
(use-package rust-playground
:ensure t)