[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)
```
- [elpa] master updated (3c5b50a -> 8b585bc), Jackson Ray Hamilton, 2015/02/07
- [elpa] master 6e69c6b 02/10: Update theme documentation., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 90a4828 01/10: Update installation instructions.,
Jackson Ray Hamilton <=
- [elpa] master 3a6c5db 03/10: Remove require., Jackson Ray Hamilton, 2015/02/07
- [elpa] master d8c682c 04/10: Add more placeholder faces., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 39d97de 05/10: Add leuven theme., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 5cd77bb 07/10: Evaluate theme name., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 87a0ee4 06/10: Automatically load themes alongside custom themes., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 7717ded 08/10: Cleanup readme., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 59de0b7 09/10: Version 4.1.0., Jackson Ray Hamilton, 2015/02/07
- [elpa] master 8b585bc 10/10: Merge commit '59de0b7591713d38c6d5c99cb49c4a4cc434a272' from context-coloring, Jackson Ray Hamilton, 2015/02/07