From 100fe208e2db669b8e0a77e416c1fa0aa4cc2589 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 25 Dec 2024 20:23:52 -0800 Subject: [PATCH] Add some new magit stuff --- init.el | 7 +++++++ 1 file changed, 7 insertions(+) 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))