From 24e83ba3d7d2f7fb10637ae82427abc8eb121c73 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 25 Apr 2024 15:21:28 -0500 Subject: [PATCH] tweaks to rustic --- README.org | 9 +++++++-- init.el | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 9cbb1329..9988a035 100644 --- a/README.org +++ b/README.org @@ -3466,7 +3466,10 @@ I'd like to start learning and using rust if I can. (chris/leader-keys 'normal rustic-mode-map "gc" 'rustic-compile "gr" 'projectile-run-project - "si" 'consult-imenu-multi)) + "si" 'consult-imenu-multi + "ga" 'rustic-cargo-add + "gC" 'rustic-cargo-clippy + "gt" 'rustic-cargo-test)) #+end_src #+begin_src emacs-lisp @@ -3592,7 +3595,9 @@ Let's give eglot a try. :general (general-def 'normal eglot-mode-map "ga" 'eglot-code-actions - "gi" 'eglot-find-implementation)) + "gi" 'eglot-find-implementation + "gr" 'eglot-rename + "gR" 'xref-find-references)) #+end_src #+begin_src emacs-lisp diff --git a/init.el b/init.el index 72ceb786..6821f7d5 100644 --- a/init.el +++ b/init.el @@ -2576,7 +2576,10 @@ targets." (chris/leader-keys 'normal rustic-mode-map "gc" 'rustic-compile "gr" 'projectile-run-project - "si" 'consult-imenu-multi)) + "si" 'consult-imenu-multi + "ga" 'rustic-cargo-add + "gC" 'rustic-cargo-clippy + "gt" 'rustic-cargo-test)) (use-package slint-mode :mode "\\.slint\\'") @@ -2640,7 +2643,9 @@ targets." :general (general-def 'normal eglot-mode-map "ga" 'eglot-code-actions - "gi" 'eglot-find-implementation)) + "gi" 'eglot-find-implementation + "gr" 'eglot-rename + "gR" 'xref-find-references)) (use-package consult-eglot :general