mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Remove hide-undefined-binds advice for which-key
Before general.el was introduced to Doom, commands were bound to keys whether or not their containing modules were enabled. This was out of laziness and readability. I intend to change this, as such it is no longer necessary to hide unavailable keybinds from which-key.
This commit is contained in:
@ -154,14 +154,6 @@ size.")
|
||||
;; take Emacs 26 line numbers into account
|
||||
(+ (if EMACS26+ 6 0) fill-column))
|
||||
|
||||
(defun doom*hide-undefined-which-key-binds (bindings)
|
||||
(cl-loop for bind in bindings
|
||||
if (or (member (cdr bind) '("Prefix Command" "??"))
|
||||
(fboundp (intern (cdr bind))))
|
||||
collect bind))
|
||||
(advice-add #'which-key--get-current-bindings :filter-return #'doom*hide-undefined-which-key-binds)
|
||||
(advice-add #'which-key--get-keymap-bindings :filter-return #'doom*hide-undefined-which-key-binds)
|
||||
|
||||
|
||||
;;
|
||||
;; Built-in packages
|
||||
|
Reference in New Issue
Block a user