Tutorial :Javascript major mode in Emacs



Question:

Which javascript major modes exist in Emacs, and what are their key-features ?


Solution:1

I think what you want is this:

http://www.corybennett.org/download/javascript-mode.el

Then again, maybe this what you are looking for?

or this?

People seem to prefer (at least given the highest rated answer):

Updated: http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascript-mode-for-emacs.html


Solution:2

js2-mode: a new JavaScript mode for Emacs


This is part of a larger project, in progress, to permit writing Emacs extensions in JavaScript instead of Emacs-Lisp.

Features:

  • M-x customize
  • Accurate syntax highlighting
  • Indentation
  • Code folding
  • Comment and string filling
  • Syntax errors
  • Strict warnings
  • jsdoc highlighting

http://steve-yegge.blogspot.com/2008/03/js2-mode-new-javascript-mode-for-emacs.html

With some documentation.


Solution:3

I use Steve Yegge's js2-mode, and like it a lot. It's quite configurable, its indentation ideas match mine, and most impressively it has a full JavaScript parser in it, so it can alert me to syntax errors as I type (indispensable for little things like trailing commas in property lists that bork IE).


Solution:4

Espresso mode is supposed to be quite good as well.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »