The default keybindings for running cargo actions are
C-c C-c C-urust-compile
C-c C-c C-krust-check
C-c C-c C-rrust-run
C-c C-c C-trust-test
C-c C-c C-lrust-run-clippy
When touch-typing, these are quite difficult to type, requiring first using one Ctrl-key and then the other.
While it is common among Emacs modes to use C-c C-c for "finishing" or "building" something, I am not aware of a tradition of continuing with C-<letter> after the prefix. Nor seems there to be such a necessity, since any key binding after the C-c C-c prefix is still free.
How about redefining the above such that a simple letter chooses the action, for example:
C-c C-c urust-compile (although one may ask why "u" for compile/build)
C-c C-c krust-check
C-c C-c rrust-run
C-c C-c trust-test
C-c C-c lrust-run-clippy
I am aware that anyone may redefine keybindings, and this is what I did. I am signalling this here because I believe that a good default configuration is valuable.
The default keybindings for running cargo actions are
C-c C-c C-u
rust-compile
C-c C-c C-k
rust-check
C-c C-c C-r
rust-run
C-c C-c C-t
rust-test
C-c C-c C-l
rust-run-clippy
When touch-typing, these are quite difficult to type, requiring first using one Ctrl-key and then the other.
While it is common among Emacs modes to use
C-c C-c
for "finishing" or "building" something, I am not aware of a tradition of continuing withC-<letter>
after the prefix. Nor seems there to be such a necessity, since any key binding after theC-c C-c
prefix is still free.How about redefining the above such that a simple letter chooses the action, for example:
C-c C-c u
rust-compile
(although one may ask why "u" for compile/build)C-c C-c k
rust-check
C-c C-c r
rust-run
C-c C-c t
rust-test
C-c C-c l
rust-run-clippy
I am aware that anyone may redefine keybindings, and this is what I did. I am signalling this here because I believe that a good default configuration is valuable.