From: Eshel Yaron Date: Tue, 14 Jun 2022 18:19:35 +0000 (+0300) Subject: Add magit-project-status to project-prefix-map and -switch-commands X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=90fba20c9d9a0d0c06fa1fdfa52bf63f14569ee6;p=dotfiles.git Add magit-project-status to project-prefix-map and -switch-commands --- 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