See also TypeScript.
- 2 Typescript
- 3 React JS
- 4 AngularJS integration
- 7 See also
As of 20150909, it derives from js-mode. That means the former function will run js-mode-hook, as well as js2-mode-hook. The key bindings will default to js-mode-map where they're not set in js2-mode-map. And in Emacs 25 or later (including the snapshot builds), js2-mode uses the indentation code from js-mode.
js2-mode supports jsx with
js2-jsx-mode. It supports indentation of JSXElement expressions wrapped within parentheses or as function arguments. Indentation is customizable via
js3-mode is a fork of js-mode and js2-mode that supports comma-first style and other quirks.
Notably, js3-mode does not support js2-mode's bounce-indent, though it does support several popular indentation styles.
- Autocompletion on variables and properties
- Function argument hints
- Querying the type of an expression
- Finding the definition of something
- Automatic refactoring
To see what Tern is all about, you should try the online demo !
Jade: a REPL, inspector, evaluator and debugger
- a REPL (with auto completion) & object inspection;
- an inspector, with history and navigation;
- a scratch buffer (M-x jade-scratch);
- a stepping Debugger, similar to edebug, or cider.
For Typescript support, see TypeScript.
rjsx-mode is a special mode for editing JSX files. We get js2-mode features plus proper syntax checking and highlighting of JSX code blocks.
Highlighting Angular directives in templates
See the packages that allow to have multiple modes in the same buffer at the same time:
The following packages are available on MELPA.
This will be done with web-beautify.