8000 Mode-specific hydra commands (a. k. a. `read-extended-command-predicate` compatibility) · Issue #425 · abo-abo/hydra · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mode-specific hydra commands (a. k. a. read-extended-command-predicate compatibility) #425
Open
@kenranunderscore

Description

@kenranunderscore

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0