Add some new magit stuff

This commit is contained in:
Alexander Rosenberg 2024-12-25 20:23:52 -08:00
parent 101342c5e3
commit 100fe208e2
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -2276,6 +2276,13 @@ functions (only eshell uses it at the time of writing)."
;; magit
(use-package magit
:init
(defvar-keymap my/magit-personal-prefix-map
:doc "Keymap for some useful Magit commands."
"s" #'magit-stage
"d" #'magit-diff-dwim
"D" #'magit-diff
"b" #'magit-blame)
(keymap-global-set "C-c i" my/magit-personal-prefix-map)
(evil-define-key '(normal visual motion) magit-mode-map
"s" #'magit-stage-file
"S" #'magit-stage-modified))