feat(sterni/emacs): allow launching magit from project-switch

I always found myself starting a shell or dired to do ,gr right after…

Change-Id: I609bbe13c74a9360608939aca79748a8e59343fd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5672
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
sterni 2022-05-25 20:56:51 +02:00 committed by clbot
parent 385591d8bf
commit 71407ab2a6

View file

@ -121,11 +121,19 @@
;; projects (see also evil config)
(defun project-magit ()
"Run magit in the current project dir"
(interactive)
(magit (project-root (project-current t))))
(define-key project-prefix-map (kbd "G") 'project-magit)
(setq project-switch-commands
'((project-find-file "Find file")
(project-find-regexp "Find regexp")
(project-dired "Dired")
(project-shell "Shell")))
(project-shell "Shell")
(project-magit "Magit")))
;;; Configure packages
(require 'use-package)