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:
Henrik Lissner 2018-12-22 03:56:05 -05:00
parent 674ad9837d
commit 3dd34abe61
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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