From 00a48b90ecb95287175ab8a805fef567024e888d Mon Sep 17 00:00:00 2001 From: tecosaur <20903656+tecosaur@users.noreply.github.com> Date: Fri, 17 Apr 2020 20:34:25 +0800 Subject: [PATCH] Make which-key less evil --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.org b/config.org index 336e07b..a7a8e74 100644 --- a/config.org +++ b/config.org @@ -815,6 +815,16 @@ Let's make this popup a bit faster #+BEGIN_SRC emacs-lisp (setq which-key-idle-delay 0.5) ;; I need the help, I really do #+END_SRC +I also thing that having =evil-= appear in so many popups is a bit too verbose, let's change that, and do a few other similar tweaks while we're at it. +#+BEGIN_SRC emacs-lisp +(setq which-key-allow-multiple-replacements t) +(after! which-key + (pushnew! + which-key-replacement-alist + '(("" . "\\`+?evil[-:]?\\(?:a-\\)?\\(.*\\)") . (nil . "◂\\1")) + '(("\\`g s" . "\\`evilem--?motion-\\(.*\\)") . (nil . "◃\\1")) + )) +#+END_SRC *** projectile Looking at documentation via =SPC h f= and =SPC h v= and looking at the source can add package src directories to projectile. This isn't desirable in my opinion.