Function: highlight-symbol-at-point

highlight-symbol-at-point is a function alias and interactive for hi-lock-face-symbol-at-point, defined in hi-lock.el.gz.

Signature

(highlight-symbol-at-point)

Documentation

Highlight each instance of the symbol at point.

Uses the next face from hi-lock-face-defaults without prompting, unless you use a prefix argument. Uses find-tag-default-as-symbol-regexp to retrieve the symbol at point.

If REGEXP contains upper case characters (excluding those preceded by \) and search-upper-case is non-nil, the matching is case-sensitive.

This uses Font lock mode if it is enabled; otherwise it uses overlays, in which case the highlighting will not update as you type. The Font Lock mode is considered "enabled" in a buffer if its major-mode causes font-lock-specified-p to return non-nil, which means the major mode specifies support for Font Lock.

View in manual

Probably introduced at or before Emacs version 24.4.

Key Bindings

Aliases

highlight-symbol-at-point