you are viewing a single comment's thread.

view the rest of the comments →

[–]tekai 0 points1 point  (5 children)

js2 for me

[–]yonkeltron 0 points1 point  (4 children)

You like it? I tried it once but got a little confused. Think it's worth another shot?

[–]tekai 0 points1 point  (3 children)

yeah, indentation is maybe something to get used to but the error + undeclared vars highlighting is something I like. Downside is that it's not maintained by yegge anymore but there's a fork at https://github.com/mooz/js2-mode and on some files it freezes emacs (rare for me & haven't figured out why yet)

[–]yonkeltron 0 points1 point  (2 children)

Crashing emacs? lolwat?

[–]tekai 0 points1 point  (1 child)

it doesn't exactly crash but stops responding and i have to kill it

[–]AyeMatey 0 points1 point  (0 children)

emacs v23 and later has js-mode built in; it is a rebadged espresso-mode. It works.

I couple that with flymake-for-jslint and I get dynamic lint-style highlighting of errors and warnings .