From 90fba20c9d9a0d0c06fa1fdfa52bf63f14569ee6 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Tue, 14 Jun 2022 21:19:35 +0300 Subject: [PATCH] Add magit-project-status to project-prefix-map and -switch-commands --- .emacs.d/esy.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index 51dac9d..64aeac6 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -1346,7 +1346,10 @@ without asking each time. #+begin_src emacs-lisp (with-eval-after-load 'project - (add-to-list 'project-switch-commands '(project-compile "Compile"))) + (add-to-list 'project-switch-commands '(project-compile "Compile")) + (when (boundp 'project-prefix-map) + (define-key project-prefix-map "m" #'magit-project-status) + (add-to-list 'project-switch-commands '(magit-project-status "Magit") t))) #+end_src * Misc. settings -- 2.39.5