From ae26ff3282cb4521a853913272569f29082260dd Mon Sep 17 00:00:00 2001 From: Clement Busschaert Date: Fri, 1 Nov 2019 12:18:11 +0100 Subject: [PATCH 1/2] [keys] which-key desc for window->+maximize map --- modules/config/default/+evil-bindings.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 803982411..ccd036531 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -627,3 +627,9 @@ (:when (featurep! :lang org +pomodoro) :desc "Pomodoro timer" "t" #'org-pomodoro) :desc "Word-wrap mode" "w" #'+word-wrap-mode)) + +(after! which-key + (let ((prefix-re (regexp-opt (list doom-leader-key doom-leader-alt-key)))) + (cl-pushnew `((,(format "\\`\\(?:C-w\\|%s w\\) m\\'" prefix-re)) + nil . "maximize") + which-key-replacement-alist))) From db59ec823ee186bd7a04deacff0af472b15a520c Mon Sep 17 00:00:00 2001 From: Clement Busschaert Date: Fri, 1 Nov 2019 12:21:07 +0100 Subject: [PATCH 2/2] [keys] which-key desc also on `C-h d` and `C-h r` --- modules/config/default/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 027a8f6d7..49f68c592 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -342,10 +342,10 @@ (after! which-key (let ((prefix-re (regexp-opt (list doom-leader-key doom-leader-alt-key)))) - (cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|%s h\\) d\\'" prefix-re)) + (cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|C-h\\|%s h\\) d\\'" prefix-re)) nil . "doom") which-key-replacement-alist) - (cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|%s h\\) r\\'" prefix-re)) + (cl-pushnew `((,(format "\\`\\(?:<\\(?:\\(?:f1\\|help\\)>\\)\\|C-h\\|%s h\\) r\\'" prefix-re)) nil . "reload") which-key-replacement-alist)))