define-key! -> global-set-key

In case general hasn't been installed yet.
This commit is contained in:
Henrik Lissner 2019-12-24 00:00:40 -05:00
parent ffcc24350c
commit f49913fc9e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -379,12 +379,11 @@ files, so we replace calls to `pp' with the much faster `prin1'."
;; a better *help* buffer ;; a better *help* buffer
:commands helpful--read-symbol :commands helpful--read-symbol
:init :init
(define-key! (global-set-key [remap describe-function] #'helpful-callable)
[remap describe-function] #'helpful-callable (global-set-key [remap describe-command] #'helpful-command)
[remap describe-command] #'helpful-command (global-set-key [remap describe-variable] #'helpful-variable)
[remap describe-variable] #'helpful-variable (global-set-key [remap describe-key] #'helpful-key)
[remap describe-key] #'helpful-key (global-set-key [remap describe-symbol] #'doom/describe-symbol)
[remap describe-symbol] #'doom/describe-symbol)
(defun doom-use-helpful-a (orig-fn &rest args) (defun doom-use-helpful-a (orig-fn &rest args)
"Force ORIG-FN to use helpful instead of the old describe-* commands." "Force ORIG-FN to use helpful instead of the old describe-* commands."