diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-25 00:13:37 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-25 00:23:26 +0200 |
commit | fdc1028cfd9e6563dbbe950cdd539559ce8d6353 (patch) | |
tree | 4b0ae3791baf59e94767dca01c71fd9828a69798 /emacs.d/lisp/jshint-mode/README.markdown | |
parent | 452a858fe4d70ec3521687dcbd1a8270f51b6f37 (diff) | |
download | dotfiles-fdc1028cfd9e6563dbbe950cdd539559ce8d6353.tar.gz dotfiles-fdc1028cfd9e6563dbbe950cdd539559ce8d6353.tar.xz dotfiles-fdc1028cfd9e6563dbbe950cdd539559ce8d6353.zip |
emacs: added some additional modes
Diffstat (limited to 'emacs.d/lisp/jshint-mode/README.markdown')
-rw-r--r-- | emacs.d/lisp/jshint-mode/README.markdown | 38 |
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) |