From 5d62d5d72ea4f1aa3d247837088797a4abbcb6c2 Mon Sep 17 00:00:00 2001 From: Josef Vlach Date: Fri, 6 Jan 2023 20:23:31 +0000 Subject: Update README.md - add default keybindings --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') 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) -``` +- C-c C-c C-u `rust-compile` +- C-c C-c C-k `rust-check` +- C-c C-c C-t `rust-test` +- C-c C-c C-r `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 C-c C-c C-l. ### Easy insertion of dbg! -- cgit v1.2.3