I am working with a highly customized emacs configuration that is not built by me and it highlights all the words in the buffer that match the word under the cursor.

How to find the function that highlights all the words under the cursor?

After the key sequence forward-word, backward-word or down-mouse-1 the highlight occurs. There are no hooks set up for these key sequences.

It appears there is a small delay after the cursor move ends and the highlight occurs.

Are there any cursor or timer hooks that can be examined to find the function that highlights the words under the cursor?

1 Answer 1


I know 2 packages for highlighting symbol under curser.

Both of them use the same hook: post-command-hook, see symbol-overlay-mode and highlight-symbol-mode

Both of them use timers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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