[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically highlighting the symbol under point
From: |
Tassilo Horn |
Subject: |
Re: Automatically highlighting the symbol under point |
Date: |
Sat, 22 Aug 2015 07:36:51 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
John Mastro <john.b.mastro@gmail.com> writes:
>> I am using prelude and if my point is over a symbol then I can call
>> 'highlight-symbol-under-point' which works great. However, I can't
>> figure out how to turn it off.
>
> You can use `unhighlight-regexp' (on `C-x w r' and/or `M-s h u') for
> this. It prompts for a regexp, but for your scenario you can just hit
> `RET' to accept the default.
>
>> Ideally, I would like it to automatically highlight the symbol under
>> point all the time, or at least when in a programming mode - is that
>> possible and any prior art you can point me at?
>
> Check out `idle-highlight-mode' (available in MELPA) for that:
> https://github.com/nonsequitur/idle-highlight-mode
Or alternatively, highlight-symbol-mode from
https://github.com/nschum/highlight-symbol.el
Bye,
Tassilo