-
Notifications
You must be signed in to change notification settings - Fork 13
About
Home - About
This mode is a chimeric fork of js-mode (included with emacs 24) and js2-mode that supports comma-first style and other quirks.
The goal of this project was to get a javascript mode working that supports npm style, but it turns out this mode is compatible with other styles as well.
Since js2-mode already used indentation code copied from js-mode (then called espresso-mode) it was straightforward to update the indentation code using the official js-mode, and then make relevant changes. Mihai Bazon originally gave me the idea.
Notably, js3-mode does not support js2-mode's bounce-indent, though it does support several popular indentation styles.
Cheeso on StackOverflow initially pointed me in the right direction to fix js-mode's indentation, and encouraged me to improve my lisp-fu.
This mode is maintained by Thom Blake.
Remember - if you start a line with (
, [
, +
, or -
, strongly consider preceding it with a semicolon (;
).