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:
parent
674ad9837d
commit
3dd34abe61
1 changed files with 0 additions and 8 deletions
|
@ -154,14 +154,6 @@ size.")
|
||||||
;; take Emacs 26 line numbers into account
|
;; take Emacs 26 line numbers into account
|
||||||
(+ (if EMACS26+ 6 0) fill-column))
|
(+ (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
|
;; Built-in packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue