From 8d60190847f90872f471ccedcf9ea88ea9c5a307 Mon Sep 17 00:00:00 2001
From: Case Duckworth
Date: Sat, 1 May 2021 15:20:01 -0500
Subject: Tweak which-key idle timing

It does seem as though `which-key-show-early-on-C-h' isn't respected here, but
I'm not sure exactly what the issue is.  Could be the
`which-key-setup-minibuffer'... more research is needed.
---
 init.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/init.el b/init.el
index d6e8fc8..b3fcfee 100644
--- a/init.el
+++ b/init.el
@@ -968,8 +968,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 0.05
-           which-key-idle-secondary-delay 0.05
+           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)
@@ -978,9 +978,9 @@ if ripgrep is installed, otherwise `consult-grep'."
      ;; 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) 0)
-     ;; Otherwise, wait 1.25 seconds
-     (t 1.25)))
+     ((> len 1) which-key-idle-secondary-delay)
+     ;; Otherwise, wait
+     (t which-key-idle-delay)))
   
   (which-key-setup-minibuffer)
   (which-key-mode +1))
-- 
cgit 1.4.1-21-gabe81