There are a couple JavaScript modes out there:
Does anyone have a recommendation on which to use?
EDIT
2011 June 11 - This is sort of an old, outdated question at this point. FYI: Emacs v23 now includes a javascript mode, it's called js-mode and it is basically a renamed and updated espresso mode. I've chosen to use the built-in mode.
There's also espresso-mode.
A note from the espresso-mode homepage:
Espresso has been incorporated into GNU Emacs starting with version 23.2 and has been renamed js-mode.
I use js2-mode for JavaScript authoring, and it's excellent. It's not ideal for JavaScript-like languages, though (ActionScript), so it's good to have a simple mode around as a backup for those cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With