Tuesday, February 14, 2012

Setting up Emacs as a Javascript editing environment for Fun or Profit « Deadpan Sincerity

Setting up Emacs as a Javascript editing environment for Fun or Profit « Deadpan Sincerity: "(add-to-list 'load-path "~/path/to/lintnode")
(require 'flymake-jslint)
;; Make sure we can find the lintnode executable
(setq lintnode-location "~/path/to/lintnode")
;; JSLint can be... opinionated
(setq lintnode-jslint-excludes (list 'nomen 'undef 'plusplus 'onevar 'white))
;; Start the server when we first open a js file and start checking
(add-hook 'js-mode-hook
(lambda ()
(lintnode-hook)))"

'via Blog this'