NonGNU ELPA - idle-highlight-mode

idle-highlight-mode

Description
Highlight the word the point is on
Latest
idle-highlight-mode-1.1.3.tar, 2022-Jul-07, 10.0 KiB
Maintainer
Phil Hagelberg, Cornelius Mika, Campbell Barton <>
Website
https://codeberg.com/ideasman42/emacs-idle-highlight-mode
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package, run in Emacs:

M-x package-install RET idle-highlight-mode RET

Full description

Based on some snippets by fledermaus from the #emacs channel.

M-x idle-highlight-mode sets an idle timer that highlights all
occurences in the buffer of the word under the point.

Enabling it in a hook is recommended. But you don't want it enabled
for all buffers, just programming ones.

Example:

(defun my-coding-hook ()
  (make-local-variable 'column-number-mode)
  (column-number-mode t)
  (if window-system (hl-line-mode t))
  (idle-highlight-mode t))

(add-hook 'emacs-lisp-mode-hook 'my-coding-hook)
(add-hook 'ruby-mode-hook 'my-coding-hook)
(add-hook 'js2-mode-hook 'my-coding-hook)