summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJosef Vlach <vlach.josef@gmail.com>2023-01-06 20:23:31 +0000
committerJosef Vlach <vlach.josef@gmail.com>2023-01-06 20:28:24 +0000
commit5d62d5d72ea4f1aa3d247837088797a4abbcb6c2 (patch)
tree0b47a6d75117326fe14c8430204f50851a69147b /README.md
parent0431b10d2520918f3f250fdf4dc96e8d2eb7ea76 (diff)
downloadrust-mode-5d62d5d72ea4f1aa3d247837088797a4abbcb6c2.tar.gz
Update README.md - add default keybindings
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 5d20f2d..88c4e7a 100644
--- a/README.md
+++ b/README.md
@@ -166,17 +166,18 @@ The `rust-run`, `rust-test`, `rust-compile` and `rust-check` functions
shell out to Cargo to run, test, build and check your code. Under the
hood, these use the standard Emacs `compile` function.
-These are not bound by default. To bind these to keyboard shortcuts,
-you can use the following in your init.el:
+By default these are bound to:
-``` elisp
-(define-key rust-mode-map (kbd "C-c C-c") 'rust-run)
-```
+- <kbd>C-c C-c C-u</kbd> `rust-compile`
+- <kbd>C-c C-c C-k</kbd> `rust-check`
+- <kbd>C-c C-c C-t</kbd> `rust-test`
+- <kbd>C-c C-c C-r</kbd> `rust-run`
### Clippy
`rust-run-clippy` runs
-[Clippy](https://github.com/rust-lang/rust-clippy), a linter.
+[Clippy](https://github.com/rust-lang/rust-clippy), a linter. By
+default, this is bound to <kbd>C-c C-c C-l</kbd>.
### Easy insertion of dbg!