File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,11 @@ opposite of what that option dictates."
121
121
(insert " \n == See Also\n\n " )
122
122
(if-let ((see-alsos (nrepl-dict-get dict " see-alsos" )))
123
123
(dolist (see-also see-alsos)
124
- (insert (format " * %s \n " see-also)))
124
+ (insert-text-button (format " * %s \n " see-also)
125
+ 'sym see-also
126
+ 'action (lambda (btn )
127
+ (cider-clojuredocs-lookup (button-get btn 'sym )))
128
+ 'help-echo (format " Press Enter or middle click to jump to %s " see-also)))
125
129
(insert " Not available\n " ))
126
130
(insert " \n == Examples\n\n " )
127
131
(if-let ((examples (nrepl-dict-get dict " examples" )))
@@ -140,7 +144,8 @@ opposite of what that option dictates."
140
144
(defun cider-clojuredocs-lookup (sym )
141
145
" Look up the ClojureDocs documentation for SYM."
142
146
(let ((docs (cider-sync-request:clojuredocs-lookup (cider-current-ns) sym)))
143
- (pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs)))))
147
+ (pop-to-buffer (cider-create-clojuredocs-buffer (cider-clojuredocs--content docs)))
148
+ (highlight-regexp (car (last (split-string sym " /" ))) 'bold )))
144
149
145
150
;;;### autoload
146
151
(defun cider-clojuredocs (&optional arg )
You can’t perform that action at this time.
0 commit comments