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

How can I hide keys from the which-key popup? #366

Closed LemonBreezes closed 5 months ago

LemonBreezes commented 6 months ago

Hi. I want to hide some commands from the Harpoon package that are bound to SPC 1-9.

justbur commented 6 months ago

Yes, you can use `which-key-replacement-alist' to do this. Please see the documentation for that variable and let me know if you have questions.

LemonBreezes commented 5 months ago

Yes, you can use `which-key-replacement-alist' to do this. Please see the documentation for that variable and let me know if you have questions.

Thanks! I finally figured it out:

(add-to-list 'which-key-replacement-alist '(("" . "harpoon-go-to-[0-9]+") . ignore))