Quickly highlight a symbol throughout the buffer and cycle through its locations.
(add-to-list 'load-path "/path/to/highlight-symbol") (require 'highlight-symbol) (global-set-key [(control f3)] 'highlight-symbol-at-point) (global-set-key [f3] 'highlight-symbol-next) (global-set-key [(shift f3)] 'highlight-symbol-prev) (global-set-key [(meta f3)] 'highlight-symbol-prev)))
Use C-f3 to toggle highlighting of the symbol at point throughout the current buffer. Use highlight-symbol-mode to keep the symbol at point always highlighted.
The functions highlight-symbol-next, highlight-symbol-prev, highlight-symbol-next-in-defun and highlight-symbol-prev-in-defun allow for cycling through the locations of any symbol at point. When highlight-symbol-on-navigation-p is set, highlighting is triggered regardless of highlight-symbol-idle-delay.
Also available via ELPA.
If you have any feedback, please email me, or visit this package's page at the Emacs wiki.