Closed aadi58002 closed 1 year ago
(bind ((setq my-buffer-map (make-sparse-keymap))
"k" (cons "Kill current buffer" #'kill-this-buffer))
(my-leader-map
"b" (cons "Buffer" my-buffer-map)))
bind-prefix
currently is not capable of giving a prefix a description but you can collect those commands in one map and bind a key to a map with description through a cons cell. For more information you can see define-key
. which-key
is capable of processing your given string.
like in general.el
We can give name to prefix keys with :ignore (kind of)