diff options
author | Case Duckworth | 2021-05-01 15:20:01 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-01 15:20:01 -0500 |
commit | 8d60190847f90872f471ccedcf9ea88ea9c5a307 (patch) | |
tree | 602450d25d3e4a998defbe296d71bde05f057145 | |
parent | Change the fringe face (diff) | |
download | emacs-8d60190847f90872f471ccedcf9ea88ea9c5a307.tar.gz emacs-8d60190847f90872f471ccedcf9ea88ea9c5a307.zip |
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.
-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)) |