Trivial example of what I would like to do:
(define-prefix-command 'my-prefix-map) (defun populate-my-prefix () (define-key my-prefix-map (kbd "a") #'move-beginning-of-line)) (define-key global-map (kbd "<f6>") #'my-prefix-map)
f6 I would like to run
my-prefix-map is executed.
I think Hydra can do something like this (call another function upon entering the Hydra), but I'm writing my own package and would rather not depend on it.