justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.73k stars 87 forks source link

Automatic expansion of unnamed prefixes #357

Open Nekosis opened 11 months ago

Nekosis commented 11 months ago

Say I have a General definer called nyamacs/leader-keys with my leader as SPC, and I set up this keybind with it:

 (nyamacs/leader-keys
  "TAB TAB" '(comment-line :wk "Comment lines"))

In Emacs, after pressing SPC once, which-key appears, but the keybinding I just created displays as TAB → +prefix.

I would like a way to completely bypass the prefix if it is unset, so after pressing SPC once, this keybind will display as TAB TAB → Comment lines.