abo-abo / hydra

make Emacs bindings that stick around
1.85k stars 112 forks source link

How to call original key binding in amaranth hydra? #82

Closed jhonnyseven closed 9 years ago

jhonnyseven commented 9 years ago

I'm currently doing (progn (hydra-pink-fallback)). Is this the best way?

abo-abo commented 9 years ago

I think it could work without a progn.

Can you give more context? What are you trying to do?

jhonnyseven commented 9 years ago

It would be handy when using vi-movement hydra on different major modes. For example , I'd like to use η to call the mode specific documentation function.

hydra-pink-fallback is a function, not a command, so it doesn't work.

jhonnyseven commented 9 years ago

Perhaps a better example: I have M-m bound to mode specific hydras with frequently forgotten commands. So it would be nice to be able to access this from vi-movement hydra.

abo-abo commented 9 years ago

hydra-pink-fallback is a function, not a command, so it doesn't work.

(hydra-pink-fallback) will work.

jhonnyseven commented 9 years ago

Indeed it does, thanks.