branch: elpa/rust-mode commit 53b1b5c0bf9fdfd808e2671b5635c105961f06ca Merge: 0431b10d25 5d62d5d72e Author: brotzeit <brotzeitmac...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #485 from VlachJosef/master Update README.md - add default keybindings --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5d20f2d59a..88c4e7ab45 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!