diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2020-08-02 07:26:13 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2020-08-02 07:39:14 +0200 |
commit | 85b09ba6ecc25c329af7ca39883c22f760c6e502 (patch) | |
tree | b1556426b68499cc2bb67bf532766fa8410df57a /helm-semantic.el | |
parent | 4ec0004897b617414d8d559e2d87f7d33fda33f4 (diff) |
Allow customizing matches around point in imenu (#2354)
Default to 0 to highlight symbol at point only in current line.
Use it in helm-imenu and helm-imenu-in-all-buffers and also
in helm-semantic fns.
Diffstat (limited to 'helm-semantic.el')
-rw-r--r-- | helm-semantic.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helm-semantic.el b/helm-semantic.el index eb37c053..ceb0f456 100644 --- a/helm-semantic.el +++ b/helm-semantic.el @@ -173,7 +173,9 @@ If ARG is supplied, pre-select symbol at point instead of current." (format "\\_<%s\\_>" curtag) (cons (format "\\_<%s\\_>" it) (format "\\_<%s\\_>" curtag)))) - (format "\\_<%s\\_>" (car (semantic-current-tag)))))) + (format "\\_<%s\\_>" (car (semantic-current-tag))))) + (helm-highlight-matches-around-point-max-lines + helm-imenu-highlight-matches-around-point-max-lines)) (unless helm-source-semantic (setq helm-source-semantic (helm-make-source "Semantic Tags" 'helm-semantic-source @@ -206,6 +208,8 @@ Fill in the symbol at point by default." (let* ((source (if (semantic-active-p) 'helm-source-semantic 'helm-source-imenu)) + (helm-highlight-matches-around-point-max-lines + helm-imenu-highlight-matches-around-point-max-lines) (imenu-p (eq source 'helm-source-imenu)) (imenu-auto-rescan imenu-p) (str (thing-at-point 'symbol)) |