technomancy / emacs-starter-kit

[ARCHIVED] this is ancient history
GNU General Public License v3.0
2.86k stars 887 forks source link

flymake mode in javascript #21

Open mattharrison opened 14 years ago

mattharrison commented 14 years ago

Flymake for js doesn't work out of the box. There's some hardcoded Windows paths in there.

I have a script that runs jslint, so I hooked that up. The regexes need to be updated for jslint as well....

diff --git a/elpa-to-submit/nxhtml/related/flymake-js.el b/elpa-to-submit/nxhtml/related/flymake-js.el index 56aa571..73f5feb 100644 --- a/elpa-to-submit/nxhtml/related/flymake-js.el +++ b/elpa-to-submit/nxhtml/related/flymake-js.el @@ -87,6 +87,8 @@ ;; These pattern are probably for Rhino: ("^js: \"(.+)\", line ([0-9]+): (.+)$" 1 2 nil 3) ("^js: uncaught JavaScript (.+)$" nil nil nil 1)

 (defun flymake-js-load ()
   (dolist (rec flymake-allowed-js-file-name-masks)

What would be the process for resolving this? I'm assuming we just need to package/include os neutral jslint.

Let me know what I can do to help.

cheers

purcell commented 12 years ago

Not sure if it helps, but there's this package of mine: http://marmalade-repo.org/packages/flymake-jslint

mattharrison commented 12 years ago

I'm on el-get now, but I'll check out your package. Thanks.

purcell commented 12 years ago

I used to use el-get too... now enjoying having everything in elpa, even though it meant I had to package up a bunch of stuff. :-)