This question has been edited thanks to dalanicolai.
I want to change some of the default which-key
key binds used to turn the pages.
In which-key.el
they are set like so:
(defvar which-key-C-h-map
(let ((map (make-sparse-keymap)))
(dolist (bind `(("\C-a" . which-key-abort)
;;abbreviated...
("n" . which-key-show-next-page-cycle)
("p" . which-key-show-previous-page-cycle)
;;abbreviated...
(define-key map (car bind) (cdr bind)))
map)
"Keymap for C-h commands.")
when I do :
(define-key which-key-C-h-map (kbd "z") 'which-key-show-next-page-cycle)
I can turn the pages ok.
but when I want to use PgUp/PgDown and do :
(define-key which-key-C-h-map (kbd "<next>") 'which-key-show-next-page-cycle)
I get: which-key-C-h-dispatch: Wrong type argument: characterp, next
Why can't I use those two keys?
which-key.el
. – Drew Nov 14 '21 at 18:20