From d9122c48b2b702d42cf044cbb80fde2c7caf5869 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Mon, 25 Feb 2019 09:57:03 -0500 Subject: [PATCH] Always check non-major-mode replacements in which-key--maybe-replace --- which-key.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/which-key.el b/which-key.el index 21d159a448d..068c23cb5e6 100644 --- a/which-key.el +++ b/which-key.el @@ -1437,9 +1437,9 @@ which are strings. KEY is of the form produced by `key-binding'." one-match) (if pseudo-binding pseudo-binding - (let* ((all-repls (or (cdr-safe - (assq major-mode which-key-replacement-alist)) - which-key-replacement-alist))) + (let* ((all-repls + (append (cdr-safe (assq major-mode which-key-replacement-alist)) + which-key-replacement-alist))) (dolist (repl all-repls key-binding) (when (and (or which-key-allow-multiple-replacements (not one-match))