From 1a0fd1b7ecae82502547dd3394c53b3e5ecfed60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Larsson?= Date: Fri, 17 Dec 2021 19:32:59 +0100 Subject: [PATCH] fix(magit): unbind M-1 etc. for code-review code-review is built on magit-sections so it will have the same default bindings for M-1, M-2 etc. To be consistent with the rest of doom, those should be used for switching workspace and z1, z2 etc should be used for toggling outlines in a magit-sections buffer. This only affects users with :editor (evil +everywhere) enabled. Amend: 2d3a68df496f --- modules/tools/magit/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index 0882d370b..d59783adf 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -234,6 +234,9 @@ ensure it is built when we actually use Forge." ;; especially when traversing modes in magit buffers. (evil-define-key* 'normal magit-status-mode-map [escape] nil) + (after! code-review + (undefine-key! code-review-mode-map "M-1" "M-2" "M-3" "M-4" "1" "2" "3" "4" "0")) + ;; Some extra vim-isms I thought were missing from upstream (evil-define-key* '(normal visual) magit-mode-map "%" #'magit-gitflow-popup