Skip to content

Commit 53b1b5c

Browse files
authored
Merge pull request #485 from VlachJosef/master
Update README.md - add default keybindings
2 parents 0431b10 + 5d62d5d commit 53b1b5c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,18 @@ The `rust-run`, `rust-test`, `rust-compile` and `rust-check` functions
166166
shell out to Cargo to run, test, build and check your code. Under the
167167
hood, these use the standard Emacs `compile` function.
168168

169-
These are not bound by default. To bind these to keyboard shortcuts,
170-
you can use the following in your init.el:
169+
By default these are bound to:
171170

172-
``` elisp
173-
(define-key rust-mode-map (kbd "C-c C-c") 'rust-run)
174-
```
171+
- <kbd>C-c C-c C-u</kbd> `rust-compile`
172+
- <kbd>C-c C-c C-k</kbd> `rust-check`
173+
- <kbd>C-c C-c C-t</kbd> `rust-test`
174+
- <kbd>C-c C-c C-r</kbd> `rust-run`
175175

176176
### Clippy
177177

178178
`rust-run-clippy` runs
179-
[Clippy](https://github.com/rust-lang/rust-clippy), a linter.
179+
[Clippy](https://github.com/rust-lang/rust-clippy), a linter. By
180+
default, this is bound to <kbd>C-c C-c C-l</kbd>.
180181

181182
### Easy insertion of dbg!
182183

0 commit comments

Comments
 (0)