Download js2-highlight-vars.el. [ This page is part of a larger article that I wrote about my js2-mode setup. ] This is a minor mode that I wrote on top of js2-mode which highlights all occurrences of the variable under the cursor within its defining scope. I once saw this at a friend who was using Eclipse, and I thought it's pretty cool. I searched EmacsWiki for something like this and found a