diff options
| author | Josef Vlach <vlach.josef@gmail.com> | 2023-01-06 20:23:31 +0000 |
|---|---|---|
| committer | Josef Vlach <vlach.josef@gmail.com> | 2023-01-06 20:28:24 +0000 |
| commit | 5d62d5d72ea4f1aa3d247837088797a4abbcb6c2 (patch) | |
| tree | 0b47a6d75117326fe14c8430204f50851a69147b /README.md | |
| parent | 0431b10d2520918f3f250fdf4dc96e8d2eb7ea76 (diff) | |
| download | rust-mode-5d62d5d72ea4f1aa3d247837088797a4abbcb6c2.tar.gz | |
Update README.md - add default keybindings
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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! |
