[ The problem I have which which-key is that it applies only after a prefix. ]
Mutating a keymap with setc[ad]r is evil!
Since you bind that map to a prefix, why not use (menu-item "dummy" KEYMAP :filter FUNCTION) instead?
[ The problem with this trick is that it can be used only after a prefix. ๐ ]
The problem I have which which-key is that it applies only after a prefix.
There are commands which-key-show-major-mode and which-key-show-top-level, which you could use. On the embark side, there is embark-bindings which by default gives you bindings from the major mode and minor modes, but with C-u will give you global bindings.
Mutating a keymap with setc[ad]r is evil!
Agreed.
why not use (menu-item "dummy" KEYMAP :filter FUNCTION) instead?
[ The problem I have which which-key is that it applies only after a prefix. ]
Mutating a keymap with
setc[ad]r
is evil! Since you bind that map to a prefix, why not use(menu-item "dummy" KEYMAP :filter FUNCTION)
instead?[ The problem with this trick is that it can be used only after a prefix. ๐ ]
There are commands
which-key-show-major-mode
andwhich-key-show-top-level
, which you could use. On the embark side, there isembark-bindings
which by default gives you bindings from the major mode and minor modes, but withC-u
will give you global bindings.Agreed.
Only because I didn't think of it!