Yes, Emacs has that (highlight matches of a given symbol or other pattern). Sounds like any of these correspond to what you are looking for:
Incremental search (aka isearch):
C-s
orC-M-s
, then type what you want to match (or useC-w
... to pick it up from the buffer).Library
highlight-symbol
.Library
highlight
, commandhlt-highlight-symbol
. (And see option`hlt-auto-faces-flag
.) Does what libraryhighlight-symbol
does, and more.Emacs 24.4 (i.e., current development snapshot), command
hi-lock-face-symbol-at-point
.
If you use library mouse3.el
then right-clicking the mouse gives you the last two alternatives for the symbol under the mouse pointer.