Skip to content

Commit

Permalink
Change how buttons are formatted in ClojureDocs buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
katomuso authored and bbatsov committed Jun 4, 2024
1 parent c8c4381 commit 1fcc6d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cider-clojuredocs.el
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ opposite of what that option dictates."
(insert "\n== See Also\n\n")
(if-let ((see-alsos (nrepl-dict-get dict "see-alsos")))
(dolist (see-also see-alsos)
(insert-text-button (format "* %s\n" see-also)
(insert "* ")
(insert-text-button see-also
'sym see-also
'action (lambda (btn)
(cider-clojuredocs-lookup (button-get btn 'sym)))
'help-echo (format "Press Enter or middle click to jump to %s" see-also)))
'help-echo (format "Press Enter or middle click to jump to %s" see-also))
(insert "\n"))
(insert "Not available\n"))
(insert "\n== Examples\n\n")
(if-let ((examples (nrepl-dict-get dict "examples")))
Expand Down

0 comments on commit 1fcc6d2

Please sign in to comment.