mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
doom/what-minor-mode: accept symbols & handle errors
This commit is contained in:
@ -32,7 +32,11 @@ selection of all minor-modes, active or not."
|
||||
(interactive
|
||||
(list (completing-read "Minor mode: "
|
||||
(doom-active-minor-modes))))
|
||||
(describe-minor-mode-from-symbol (intern mode)))
|
||||
(describe-minor-mode-from-symbol
|
||||
(cl-typecase mode
|
||||
(string (intern mode))
|
||||
(symbol mode)
|
||||
(t (error "Expected a symbol/string, got a %s" (type-of mode))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/am-i-secure ()
|
||||
|
Reference in New Issue
Block a user