From bee667effdfbb7d9e6eeaf92e8c86657d8b08d13 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 20 Jul 2021 00:40:20 +0200 Subject: [PATCH] Add Magit log pick/quit keybindings --- .config/emacs/config.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index c47cc40..a7a5468 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -776,7 +776,10 @@ Debug Adapter Protocol. (setq git-commit-summary-max-length 70) (setq magit-diff-paint-whitespace-lines 'both) (setq magit-repository-directories '(("~/dotfiles" . 0) - ("~/code" . 3)))) + ("~/code" . 3))) + + (put 'magit-log-select-pick :advertised-binding [?\M-c]) + (put 'magit-log-select-quit :advertised-binding [?\M-k])) #+END_SRC *** Prettify @@ -1728,6 +1731,11 @@ Set keybinds to functionality of installed packages. (global-set-key [remap describe-variable] #'helpful-variable) (which-key-add-key-based-replacements "C-h o" "describe-symbol-at-point") +;; Magit +(with-eval-after-load 'magit + (define-key magit-log-select-mode-map (kbd "M-c") #'magit-log-select-pick) + (define-key magit-log-select-mode-map (kbd "M-k") #'magit-log-select-quit)) + ;; Minibuffer completion selection (general-def minibuffer-local-map "M-h" #'abort-recursive-edit