diff options
-rw-r--r-- | init.el | 10 |
1 files 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'." | |||
968 | 968 | ||
969 | (setup (:straight which-key) | 969 | (setup (:straight which-key) |
970 | (:option which-key-show-early-on-C-h t | 970 | (:option which-key-show-early-on-C-h t |
971 | which-key-idle-delay 0.05 | 971 | which-key-idle-delay 1 |
972 | which-key-idle-secondary-delay 0.05 | 972 | which-key-idle-secondary-delay 0.5 |
973 | which-key-delay-functions '(acdw/which-key-delay-all-but)) | 973 | which-key-delay-functions '(acdw/which-key-delay-all-but)) |
974 | 974 | ||
975 | (defun acdw/which-key-delay-all-but (seq len) | 975 | (defun acdw/which-key-delay-all-but (seq len) |
@@ -978,9 +978,9 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
978 | ;; With C-z binds (`acdw/leader'), pop up right away | 978 | ;; With C-z binds (`acdw/leader'), pop up right away |
979 | ((string-prefix-p "C-z" seq :ignore-case) 0) | 979 | ((string-prefix-p "C-z" seq :ignore-case) 0) |
980 | ;; Also pop up right away if we're already entering keys | 980 | ;; Also pop up right away if we're already entering keys |
981 | ((> len 1) 0) | 981 | ((> len 1) which-key-idle-secondary-delay) |
982 | ;; Otherwise, wait 1.25 seconds | 982 | ;; Otherwise, wait |
983 | (t 1.25))) | 983 | (t which-key-idle-delay))) |
984 | 984 | ||
985 | (which-key-setup-minibuffer) | 985 | (which-key-setup-minibuffer) |
986 | (which-key-mode +1)) | 986 | (which-key-mode +1)) |