]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Add magit-project-status to project-prefix-map and -switch-commands
authorEshel Yaron <eshel@dazz.io>
Tue, 14 Jun 2022 18:19:35 +0000 (21:19 +0300)
committerEshel Yaron <eshel@dazz.io>
Tue, 14 Jun 2022 18:19:35 +0000 (21:19 +0300)
.emacs.d/esy.org

index 51dac9db80caa23568040e2877a0605b46cb325a..64aeac692ecdee905cd9c79cd3699edbd40674d3 100644 (file)
@@ -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