elp-revive / auto-highlight-symbol

Automatic highlighting current symbol minor mode.
GNU General Public License v3.0
52 stars 13 forks source link

global-auto-highlight-symbol-mode doesn't work in go-mode #22

Open dolzenko opened 1 year ago

dolzenko commented 1 year ago

First of all - big thank you for this package, :heart: it. Though having minor problem - I have (global-auto-highlight-symbol-mode t) in my config and it works for e.g. ruby-mode, but for some reason I have to activate the package manually for go-mode, is there an easy way to debug? Thanks.

jcs090218 commented 1 year ago

Global minor mode is often not very reliable, so I normally add something like this to my config:

(add-hook 'go-mode-hook #'auto-highlight-symbol-mode)

Hope it helps!