summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/jshint-mode/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/lisp/jshint-mode/README.markdown38
1 files changed, 38 insertions, 0 deletions
diff --git a/emacs.d/lisp/jshint-mode/README.markdown b/emacs.d/lisp/jshint-mode/README.markdown
new file mode 100644
index 0000000..0db9826
--- /dev/null
+++ b/emacs.d/lisp/jshint-mode/README.markdown
@@ -0,0 +1,38 @@
+jshint-mode
+=======
+
+Integrate [JSHint](http://jshint.com) into Emacs via a [node.js](http://nodejs.org) server.
+
+![example](https://github.com/daleharvey/jshint-mode/raw/master/example.png)
+
+jshint-mode was heavily inspired by Kevin Turners [lintnode](https://github.com/keturn/lintnode).
+
+Building
+========
+
+Install via [npm](http://npmjs.org/)
+
+ $ npm install jshint-mode
+
+or you can [download](https://github.com/daleharvey/jshint-mode/tarball/master) or clone
+
+ $ git clone git://github.com/daleharvey/jshint-mode.git
+
+Usage
+=====
+
+Add the configuration to your .emacs config file:
+
+ $jshint-emacs-path >> ~/.emacs
+
+or if you downloaded manually:
+
+ (add-to-list 'load-path "~/path/to/jshint-mode")
+ (require 'flymake-jshint)
+ (add-hook 'javascript-mode-hook
+ (lambda () (flymake-mode t)))
+
+You can use M-x flymake-mode to turn flymake of and on, if you want to turn it on be fault, add the following to your .emacs
+
+ ;; Turns on flymake for all files which have a flymake mode
+ (add-hook 'find-file-hook 'flymake-find-file-hook)