Skip to content

Commit 0d30e6f

Browse files
committed
Add 'd' and 's' to cider-browse-ns-map
'd' shows doc', 's' shows source
1 parent 33ab642 commit 0d30e6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cider-browse-ns.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
(defvar cider-browse-ns-mode-map
4646
(let ((map (make-sparse-keymap)))
4747
(set-keymap-parent map cider-popup-buffer-mode-map)
48+
(define-key map "d" #'cider-browse-ns-doc-at-point)
49+
(define-key map "s" #'cider-browse-ns-find-at-point)
4850
(define-key map [return] #'cider-browse-ns-doc-at-point)
4951
(define-key map "^" #'cider-browse-ns-all)
5052
(define-key map "n" #'next-line)
@@ -126,6 +128,11 @@
126128
(-when-let (var (cider-browse-ns--var-at-point))
127129
(cider-doc-lookup var)))
128130

131+
(defun cider-browse-ns-find-at-point ()
132+
(interactive)
133+
(when-let (var (cider-browse-ns--var-at-point))
134+
(cider-find-var current-prefix-arg var)))
135+
129136
(defun cider-browse-ns-handle-mouse (event)
130137
"Handle mouse click EVENT."
131138
(interactive "e")

0 commit comments

Comments
 (0)