diff options
| author | jao <jao@gnu.org> | 2026-09-08 10:14:43 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-09-08 10:15:35 +0100 |
| commit | e9fbf597d3f51c2f98aba3c512a19c7fb9ef0850 (patch) | |
| tree | 0c1bf34d1e9abe92913336b6b60fba6fffccfed4 /custom/jao-custom-programming.el | |
| parent | 4e1e853f9a3b4da53d5004452ffade30532b3d63 (diff) | |
| download | elibs-e9fbf597d3f51c2f98aba3c512a19c7fb9ef0850.tar.gz elibs-e9fbf597d3f51c2f98aba3c512a19c7fb9ef0850.tar.bz2 | |
rust keymap popupmain
Diffstat (limited to 'custom/jao-custom-programming.el')
| -rw-r--r-- | custom/jao-custom-programming.el | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el index 9f5f606..1bf03e4 100644 --- a/custom/jao-custom-programming.el +++ b/custom/jao-custom-programming.el @@ -348,11 +348,31 @@ (:enable t :ignored (:async-trait ["async-trait"])) :diagnostics (:disabled ["macro-error"])))))) + + (keymap-popup-define jao-rust + :group "cargo" + "C" ("Open Cargo.toml" jao-rust-open-cargo) + "D" ("Budild docs" jao-rust-build-doc) + "k" ("Run clippy" rustic-cargo-clippy) + "K" ("Run clippy fix" rustic-cargo-clippy-fix) + "f" ("Format" rustic-cargo-fmt) + :group "utilities" + "F" ("Open flymake diagnostics" flymake-show-project-diagnostics) + "e" ("Consult eglot symobs" consult-eglot-symbols) + :group "tests" + "g" ("Go to tests" jao-rust-goto-tests) + "t" ("Current test" jao-rust-test-current) + "m" ("Module tests" jao-rust-test-module) + "w" ("Workspace tests" jao-rust-test-workspace) + "d" ("Doc tests" jao-rust-doctests) + "r" ("Retest last" jao-rust-retest)) + + :custom (rustic-cargo-use-last-stored-arguments nil) (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" . jao-rust-build-doc) + :bind (:map rustic-mode-map (("M-SPC" . jao-rust-popup) ("C-c t d" . jao-rust-test-doctests) ("C-c t g" . jao-rust-goto-tests) ("C-c t w" . jao-rust-test-workspace) |
