2

I am writing an elisp package currently I am using hydra, I would like to be able to have shortcuts you can toggle on and off for various flags.

You see this sort of thing in magit and org mode when you press the key and it hightlight the text another colour to indicate the flag is checked before selecting an actual option.

What are my options and can hydra do this sort of thing ?

2

I am not sure whether Hydra supports this (like you I would have to look at the documentation to be sure). I think it only supports setting the value of lisp variables, but not arguments to commands.

Magit's popup functionality is available as a separate package magit-popup. It comes with a manual.

  • I did look at the docs and could not find anything, but sometimes the terminology is different to expected good to know about magit-popup I may look into that as an alternative. Thanks for the link – Oly Nov 5 '16 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.