12
submitted 3 weeks ago by [email protected] to c/[email protected]

I explain what I dislike about which-key and what I think people should use instead.

top 2 comments
sorted by: hot top new old
[-] [email protected] 1 points 1 week ago* (last edited 1 week ago)

[ 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. ๐Ÿ™ƒ ]

[-] [email protected] 2 points 6 days ago

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?

Only because I didn't think of it!

this post was submitted on 04 Jul 2025
12 points (100.0% liked)

Emacs

2598 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS