From fdc1028cfd9e6563dbbe950cdd539559ce8d6353 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 25 Apr 2012 00:13:37 +0200 Subject: emacs: added some additional modes --- emacs.d/lisp/jshint-mode/README.markdown | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 emacs.d/lisp/jshint-mode/README.markdown (limited to 'emacs.d/lisp/jshint-mode/README.markdown') 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) -- cgit v1.2.3