Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preferred JavaScript mode for emacs? Is it js2-mode from Yegge? [closed]

There are a couple JavaScript modes out there:

  • js2-mode by Steve Yegge
  • javascript.el by Karl Landström.
  • espresso?
  • Something else?

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.

like image 287
Cheeso Avatar asked Jul 30 '09 18:07

Cheeso


2 Answers

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.
like image 153
jlf Avatar answered Sep 26 '22 08:09

jlf


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.

like image 22
Derek Slager Avatar answered Sep 25 '22 08:09

Derek Slager