M-x all-things-emacs

Quick Tip: light-symbol-mode

April 17th, 2007 by Rob Christie · 123 Comments

light-symbol mode in action I ran across this package on gnu.emacs.sources recently. If you enable light-symbol-mode in a buffer and pause on a symbol, then Emacs will highlight all other occurrences of the symbol in the buffer. When you move point the highlighting goes away.

Tags: misc · quick

123 responses so far ↓

  • 1 Marco Bakera // Apr 17, 2007 at 4:23 pm

    Great tip. Thanks for that.

  • 2 Tom Tromey // Apr 17, 2007 at 6:08 pm

    Cool — thanks for highlighting (yuck yuck) this.

    If you don’t mind a quick plug, take a look at ELPA. It is a simple way to install Emacs packages, including this one: http://tromey.com/elpa/

  • 3 Rob Christie // Apr 17, 2007 at 8:41 pm

    Cool… I will take look.

  • 4 Ben Straub // Apr 17, 2007 at 10:17 pm

    Unfortunately, this conflicts with all of the highlight-current-line modes from an older post here. I’m not hacker enough to resolve this, but it should be possible (tail highlighting overrides the current-line highlighting, for example).

  • 5 Nikolaj Schumacher // Apr 20, 2007 at 8:39 am

    Heh, I’ve written the exact same thing 2 days earlier.

    Not to brag, but mine also allows jumping to the next occurrence and permanently highlighting. :)

  • 6 Anonymous // May 10, 2007 at 12:00 am

    Hi, I like the fonts on your screenshot. What font is that?

  • 7 Rob Christie // May 11, 2007 at 2:15 am

    I use Monaco 12 pt as my default font and font size. I also use the color-theme package for setting colors for various modes. I use the color-theme-arjen.