aboutsummaryrefslogtreecommitdiff
path: root/lisp/hcel-results.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-06 12:07:02 +1000
committerYuchen Pei <hi@ypei.me>2022-09-06 12:07:02 +1000
commitd4da245f8ad35d80bd1965d39c7fe9d306ecd03c (patch)
treea47369984c1cd6e6a062563c494ad1b0575449d8 /lisp/hcel-results.el
parentb85fe78ce35ace46f42c5922773152843810fa5e (diff)
adding find references support to eldoc buffer
Diffstat (limited to 'lisp/hcel-results.el')
-rw-r--r--lisp/hcel-results.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/hcel-results.el b/lisp/hcel-results.el
index df1b8ae..59213e6 100644
--- a/lisp/hcel-results.el
+++ b/lisp/hcel-results.el
@@ -186,7 +186,8 @@ Start by choosing a package."
(defun hcel-minor-find-references-at-point ()
(interactive)
(let ((props (text-properties-at (point))))
- (cond ((eq major-mode 'hcel-outline-mode)
+ (cond ((or (eq major-mode 'hcel-outline-mode)
+ (eq (current-buffer) eldoc--doc-buffer))
(hcel-find-references-internal
(plist-get props 'package-id)
(plist-get props 'module-path)