[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c8a1710 100/271: Add message about needing Node.js.
From: |
Jackson Ray Hamilton |
Subject: |
[elpa] master c8a1710 100/271: Add message about needing Node.js. |
Date: |
Thu, 05 Feb 2015 18:30:12 +0000 |
branch: master
commit c8a1710e71236f4d8871a59ee2333fe48cbf9fad
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>
Add message about needing Node.js.
---
context-coloring.el | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/context-coloring.el b/context-coloring.el
index c993540..6ecc821 100644
--- a/context-coloring.el
+++ b/context-coloring.el
@@ -275,10 +275,11 @@ applying a parsed list of tokens to
(defun context-coloring-colorize ()
"Colors the current buffer by function context."
(interactive)
- (when context-coloring-benchmark-colorization
- (setq context-coloring-start-time (float-time))
- (message "%s" "Colorizing..."))
- (context-coloring-scopify))
+ (when (executable-find "node")
+ (when context-coloring-benchmark-colorization
+ (setq context-coloring-start-time (float-time))
+ (message "%s" "Colorizing..."))
+ (context-coloring-scopify)))
(defun context-coloring-change-function (start end length)
"Registers a change so that a context-colored buffer can be
@@ -316,6 +317,9 @@ colorizing would be redundant."
;; Remember this buffer. This value should not be dynamically-bound.
(setq context-coloring-buffer (current-buffer))
+ (if (null (executable-find "node"))
+ (message "context-coloring-mode requires Node.js 0.10+ to be
installed"))
+
;; Colorize once initially.
(context-coloring-colorize)
- [elpa] master 820becb 084/271: Fix test., (continued)
- [elpa] master 820becb 084/271: Fix test., Jackson Ray Hamilton, 2015/02/05
- [elpa] master fb57258 088/271: Reorder readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 426a7cd 083/271: Fix regression where existent definitions were missed., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f8120d4 092/271: Update scenarios. Update readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f50880d 091/271: Update header., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a0139c3 087/271: Cleanup Makefile., Jackson Ray Hamilton, 2015/02/05
- [elpa] master f3e4d7b 094/271: Improve benchmarks., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9ad5fb2 097/271: Update benchmark times., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ab13a16 093/271: Add back optional timer. Improve docs., Jackson Ray Hamilton, 2015/02/05
- [elpa] master a321d8b 096/271: Update screenshot., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c8a1710 100/271: Add message about needing Node.js.,
Jackson Ray Hamilton <=
- [elpa] master 53cf944 099/271: Remove make from instructions., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 9f39f5c 095/271: More benchmark improvements., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c7d1adf 103/271: Refactor Makefile., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 3cd5c31 101/271: Typos., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 46f0986 105/271: Update readme., Jackson Ray Hamilton, 2015/02/05
- [elpa] master ab083f4 102/271: Simplify package.json., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 1c47db9 107/271: Fix link., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 0960e18 106/271: Spelling., Jackson Ray Hamilton, 2015/02/05
- [elpa] master 79513b2 109/271: Remove styling from faces., Jackson Ray Hamilton, 2015/02/05
- [elpa] master c6ea2eb 116/271: Add degree sign., Jackson Ray Hamilton, 2015/02/05