Popup doesn't contain remapped commands
The popup created by hercules-def
does not seems to contain remapped commands.
For example, in org-mode-map
, several commands are bound indirectly via remapping, for example the command org-next-visible-mapping
at C-c C-n
is actually defined via [remap]
in org.el:
(define-key org-mode-map [remap outline-next-visible-heading]
#'org-next-visible-heading)
I find that if I create a hercules-def
for org-mode-map
, it doesn't contain the remapped commands. In particular, if I do the following:
(hercules-def
:transient t
:toggle-funs #'my-org-mode
:keymap 'org-mode-map)
(define-key org-mode-map (kbd "M-m") #'my-org-mode)
then M-m C-c C-n
calls outline-next-visible-heading
instead of org-next-visible-heading
and exits the hydra.
Note: the example is above is a slightly contrived -- I am actually trying to create a hercules-def
for the C-c
prefix-keymap in org-mode-map, instead of for org-mode-map itself. But I use org-mode-map in the example above because it is simpler.