Function: embark--lookup-lighter-minor-mode
embark--lookup-lighter-minor-mode is a byte-compiled function defined
in embark.el.
Signature
(embark--lookup-lighter-minor-mode TYPE TARGET)
Documentation
If TARGET is a lighter, look up its minor mode.
The describe-minor-mode command has as completion candidates
both minor-modes and their lighters. This function replaces the
lighters by their minor modes, so actions expecting a function
work on them.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--lookup-lighter-minor-mode (_type target)
"If TARGET is a lighter, look up its minor mode.
The `describe-minor-mode' command has as completion candidates
both minor-modes and their lighters. This function replaces the
lighters by their minor modes, so actions expecting a function
work on them."
(cons 'minor-mode
(let ((symbol (intern-soft target)))
(if (and symbol (boundp symbol))
target
(symbol-name (lookup-minor-mode-from-indicator target))))))