1

For example when I select a word I want the same words to be automatically highlighted just like it in Notepad++:

When I select the word "install" in Notepad++ (all other "install" are highlighted"):

enter image description here

I'm using spacemacs. I tried the package auto-highlight-symbol and also the package highlight-symbol. Set mode to 1 in .spacemacs. But when I select a word no other same words highlighted:

  • auto-highlight-symbol work for me, but I'm not sure about spacemacs. Is the face (color) too close to background? – xuhdev Nov 14 '16 at 10:19
  • 3
    Please clarify what you mean when you say "syntaxes": do you mean particular words or symbols? Please also clarify what you mean by "none of them are working." Edit you post to explain what, exactly, you did, what you expected, and what happened instead. – Dan Nov 15 '16 at 18:42
1

Use package highlight-symbol.

(use-package highlight-symbol
  :ensure t
  :init
  (add-hook 'prog-mode-hook 'highlight-symbol-mode))
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.