emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 90a4828 01/10: Update installation instructions.


From: Jackson Ray Hamilton
Subject: [elpa] master 90a4828 01/10: Update installation instructions.
Date: Sat, 07 Feb 2015 09:02:42 +0000

branch: master
commit 90a4828fff38038aad60722479758ddd9ef1bdee
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Update installation instructions.
---
 README.md |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 2db08b1..c60c7bc 100644
--- a/README.md
+++ b/README.md
@@ -41,10 +41,6 @@ Requires Emacs 24+.
 JavaScript language support requires either [js2-mode][], or
 [Node.js 0.10+][node] and the [scopifier][] executable.
 
-```bash
-npm install -g scopifier
-```
-
 ### ELPA
 
 - `M-x package-refresh-contents RET`
@@ -71,6 +67,24 @@ make compile
 ```lisp
 (add-to-list 'load-path "~/.emacs.d/context-coloring")
 (require 'context-coloring)
+```
+
+### scopifier (for non-js2-mode users)
+
+```bash
+npm install -g scopifier
+```
+
+## Usage
+
+Add the following to your `~/.emacs` file:
+
+```lisp
+;; non-js2-mode users:
+(add-hook 'js-mode-hook 'context-coloring-mode)
+
+;; js2-mode users:
+(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
 (add-hook 'js2-mode-hook 'context-coloring-mode)
 ```
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]