Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Feb 25, 2023
1 parent 7a12d3e commit 9709571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minions.el
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"Display a minor-mode menu in the mode line.
This replaces the likely incomplete and possibly cut off list of
minor-modes that is usually displayed directly in the mode line."
minor modes that is usually displayed directly in the mode line."
:group 'minions
:global t
(if minions-mode
Expand Down Expand Up @@ -268,8 +268,8 @@ Otherwise the entry can only be used to toggle the mode."
(describe-minor-mode-from-symbol fn))
:help (minions--documentation mode))))))

(defun minions--documentation (function)
(let ((doc (documentation function t)))
(defun minions--documentation (fn)
(let ((doc (documentation fn t)))
(and doc
(string-match "\\`.+" doc)
(match-string 0 doc))))
Expand Down

0 comments on commit 9709571

Please sign in to comment.