I've found that using the
highlight-symbol-mode provided by highlight-symbol works very nicely for highlighting all occurrences of the symbol at point, automatically (without my pressing anything). However, I would like to highlight all other occurrences of the symbol at point: that is, the actual symbol point is on should not be highlighted.
I can't find anything in
customize-group highlight-symbol or in highlight-symbol.el for this. Through Google, I haven't found any reference to other packages that support the functionality I want.
How can I get automatic highlighting of all other occurrences of the symbol at point?
(with-eval-after-load 'evil (add-hook 'evil-insert-state-entry-hook (lambda () (highlight-symbol-mode 0)) nil t) (add-hook 'evil-insert-state-exit-hook (lambda () (highlight-symbol-mode 1)) nil t))- I find this avoids the annoyance of the current word at the cursor being highlighted.
hightlight-symbol-at-point, etc. These are all bound to the