]> code.delx.au - gnu-emacs-elpa/blob - README.md
Cleanup.
[gnu-emacs-elpa] / README.md
1 # Context Coloring
2
3 <p align="center">
4 <img alt="Screenshot of JavaScript code highlighted by context." src="screenshot.png" title="Screenshot">
5 </p>
6
7 Highlights JavaScript code according to function context. Code in the global
8 scope is white, code in functions within the global scope is yellow, code within
9 such functions is green, etc.
10
11 ## Usage
12
13 - Install [Node.js 0.10][node] (or higher).
14 - Clone this repository and put it on your [load path][].
15 - Add the following to your `~/.emacs`:
16
17 ```lisp
18 (require 'context-coloring)
19 (add-hook 'js-mode-hook 'context-coloring-mode)
20 ```
21
22 [node]: http://nodejs.org/download/)
23 [load path]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Libraries.html