Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode-specific hydra commands (a. k. a. read-extended-command-predicate compatibility) #425

Open
kenranunderscore opened this issue Dec 15, 2024 · 0 comments

Comments

@kenranunderscore
Copy link

I'd like to have the option to make the commands created by defhydra mode-specific. That is, I'd like them to be available in M-x completion only in the modes they're defined for.
This is what read-extended-command-predicate was introduced for in Emacs 28.x, and the way to do it is to specify these modes in the call to interactive.

Is this something you'd consider adding? I haven't checked the code base yet, but if it's not too hard, I could take a stab at it; but I'd need to know what the public API should look like. (For comparison, here's where I added this change to reformatter.el: purcell/emacs-reformatter#61.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant