mirror of
https://github.com/protesilaos/modus-themes.git
synced 2026-09-10 07:16:30 -04:00
Add back the missing annotation function
I must have deleted it as part of that botched rebase I did. Anyway, this sort of thing will not even be visible to users of the marginalia package, but is still good to have.
This commit is contained in:
parent
6326130654
commit
3e091098f0
|
|
@ -4033,12 +4033,13 @@ symbol, which is safe when used as a face attribute's value."
|
|||
"Minibuffer prompt to select a Modus theme.
|
||||
With optional PROMPT string, use it as the first argument of
|
||||
`format-prompt'. Else use a generic prompt."
|
||||
(intern
|
||||
(completing-read
|
||||
(format-prompt (or prompt "Select theme") nil)
|
||||
(modus-themes--completion-table-candidates)
|
||||
nil t nil
|
||||
'modus-themes--select-theme-history)))
|
||||
(let ((completion-extra-properties `(:annotation-function ,#'modus-themes--annotate-theme)))
|
||||
(intern
|
||||
(completing-read
|
||||
(format-prompt (or prompt "Select theme") nil)
|
||||
(modus-themes--completion-table-candidates)
|
||||
nil t nil
|
||||
'modus-themes--select-theme-history))))
|
||||
|
||||
;;;###autoload
|
||||
(defun modus-themes-select (theme)
|
||||
|
|
|
|||
Loading…
Reference in a new issue