diff --git a/init.el b/init.el index feccf3d..d8a6375 100644 --- a/init.el +++ b/init.el @@ -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))