]> code.delx.au - gnu-emacs-elpa/blob - README.md
Add readme.
[gnu-emacs-elpa] / README.md
1 # Context Coloring
2
3 <p align="center">
4 <img alt="Screenshot of JavaScript code highlighted by context." src="screenshots.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 (or higher).][node]
14 - Put `context-coloring.el` on your [load path][].
15 - In 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