Fix company help replacing the current buffer

Instead of displaying in a popup.
This commit is contained in:
Henrik Lissner 2019-07-23 02:04:44 +02:00
parent 7ebc9045f2
commit 7ac155f68d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -287,8 +287,7 @@ successfully sets indent_style/indent_size.")
(defun doom-use-helpful-a (orig-fn &rest args)
"Force ORIG-FN to use helpful instead of the old describe-* commands."
(cl-letf (((symbol-function #'describe-function) #'helpful-function)
((symbol-function #'describe-variable) #'helpful-variable)
((symbol-function #'help-buffer) #'current-buffer))
((symbol-function #'describe-variable) #'helpful-variable))
(apply orig-fn args)))
(after! apropos