From d59ff1f811cba8201ed791102c83e317fe56c1d6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 5 May 2021 12:34:21 -0500 Subject: Remove complicated which-key delay --- init.el | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index f512593..da6623c 100644 --- a/init.el +++ b/init.el @@ -1042,19 +1042,8 @@ if ripgrep is installed, otherwise `consult-grep'." (setup (:straight which-key) (:option which-key-show-early-on-C-h t which-key-idle-delay 1 - which-key-idle-secondary-delay 0.5 - which-key-delay-functions '(acdw/which-key-delay-all-but)) - - (defun acdw/which-key-delay-all-but (seq len) - "Delay all `which-key' popups, /except/ the ones here." - (cond - ;; With C-z binds (`acdw/leader'), pop up right away - ((string-prefix-p "C-z" seq :ignore-case) 0) - ;; Also pop up right away if we're already entering keys - ((> len 1) which-key-idle-secondary-delay) - ;; Otherwise, wait - (t which-key-idle-delay))) - + which-key-idle-secondary-delay 0.5) + (which-key-setup-side-window-right-bottom) (which-key-mode +1)) -- cgit 1.4.1-21-gabe81