Slide 58
Slide 58 text
(defun cider-jump-to-var (&optional var line)
"Jump to the definition of VAR, optionally at a specific LINE.
When called interactively, this operates on point, or falls back to a prompt."
(interactive)
(cider-ensure-op-supported "info")
(cider-read-symbol-name
"Symbol: " (lambda (var)
(-if-let (info (cider-var-info var))
(cider--jump-to-loc-from-info info)
(message "Symbol %s not resolved" var)))))
portable