Integrate helpful into doom/describe-active-minor-mode
This commit is contained in:
parent
c6c8a33eb6
commit
1dd73b7486
1 changed files with 7 additions and 4 deletions
|
@ -96,10 +96,13 @@ the current major-modea.")
|
||||||
selection of all minor-modes, active or not."
|
selection of all minor-modes, active or not."
|
||||||
(interactive
|
(interactive
|
||||||
(list (completing-read "Minor mode: " (doom-active-minor-modes))))
|
(list (completing-read "Minor mode: " (doom-active-minor-modes))))
|
||||||
(describe-minor-mode-from-symbol
|
(let ((symbol
|
||||||
(cond ((stringp mode) (intern mode))
|
(cond ((stringp mode) (intern mode))
|
||||||
((symbolp mode) mode)
|
((symbolp mode) mode)
|
||||||
((error "Expected a symbol/string, got a %s" (type-of mode))))))
|
((error "Expected a symbol/string, got a %s" (type-of mode))))))
|
||||||
|
(if (fboundp symbol)
|
||||||
|
(helpful-function symbol)
|
||||||
|
(helpful-variable symbol))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/describe-symbol (symbol)
|
(defun doom/describe-symbol (symbol)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue