• Stars
    star
    1,307
  • Rank 34,658 (Top 0.8 %)
  • Language
    Emacs Lisp
  • License
    GNU General Publi...
  • Created about 14 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Improved JavaScript editing mode for GNU Emacs

About Build Status GNU ELPA MELPA

Improved JavaScript editing mode for GNU Emacs (description here).

For some of the latest changes, see latest user-visible changes.

Installation

The stable versions are hosted at GNU ELPA (M-x list-packages).

You can also install the latest development version from MELPA.

Requirements

Emacs 24.1+ and cl-lib (either built-in or installed from GNU ELPA).

React and JSX

The currently recommended solution is to install Emacs 27 (you can build from source or e.g. install a snapshot from a PPA) and use js-mode as the major mode. To make use of the JS2 AST and the packages that integrate with it, we recommend js2-minor-mode. See the corresponding instructions in the Commentary.

js-mode in Emacs 27 includes full support for syntax highlighting and indenting of JSX syntax.

rjsx-mode is an alternative option which comes with certain tradeoffs.

Bugs

  • See broken syntax highlighting and timer errors? Recently upgraded Emacs from version 24.2 or earlier? Try reinstalling or byte-recompiling the package.

  • Any indentation problems should be reported with M-x report-emacs-bug (please try reproducing them with js-mode first, for clarity). Starting with Emacs 25, js2-mode delegates indentation to the indentation engine of js-mode.

Please report other problems at http://github.com/mooz/js2-mode/issues.

Contributing

js2-mode is subject to the same copyright assignment policy as Emacs itself, org-mode, CEDET and other packages in GNU ELPA.

Any legally significant contributions can only be accepted after the author has completed their paperwork. Please ask for the request form, and we'll send it to you.

See Also

Some third-party modes that use the generated syntax tree:

More Repositories

1

percol

adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
Python
3,227
star
2

xkeysnail

Yet another keyboard remapping tool for X environment
Python
837
star
3

keysnail

Allows you to bind commands to key sequences in Mozilla Firefox
JavaScript
701
star
4

org-js

A parser and converter for org-mode notation, written in JavaScript
JavaScript
553
star
5

node-pdf-image

Provides an interface to convert PDF's pages to png files in Node.js by using ImageMagick
JavaScript
233
star
6

node-icu-charset-detector

A simple binding of ICU character set detection for Node.js
C++
87
star
7

js-doc

Insert JsDoc style comment easily in Emacs
Emacs Lisp
60
star
8

ikeysnail

iKeySnail provides fully-configurable hardware keyboard functionalities for web browsing on iOS (iPadOS)
JavaScript
59
star
9

emacs-zlc

Provides zsh like completion for minibuffer in Emacs
Emacs Lisp
42
star
10

auto-complete-c-headers

An auto-complete source for C/C++ header files
Emacs Lisp
31
star
11

mispli

small lisp implementation written in javascript
JavaScript
21
star
12

rios

A proxy framework for command line interfaces
Ruby
15
star
13

awesome-inequality

A curated list of inequalities in our life
12
star
14

c-eldoc

Helpful description of the arguments to C/C++ functions and macros
Emacs Lisp
11
star
15

shadow.el

That's not the file. That's shadow.
Emacs Lisp
10
star
16

gpum

gpum - Gmail Popup Unread Manager
JavaScript
6
star
17

Org-Everywhere

Use org-mode notation in every rich editors
JavaScript
6
star
18

clipple

Provides extended clipboard system to mozilla apps
JavaScript
4
star
19

lemon-mode

Emacs major mode for editing LEMON grammar files
Emacs Lisp
4
star
20

python-cmigemo

A pure python binding for C/Migemo
Python
3
star
21

Happy-Hacking-Prettifier

Tiny code prettifier written in javascript
JavaScript
3
star
22

fyure

An interface to fix Japanese hyoki-yure for Emacs
Emacs Lisp
2
star
23

togwin

Toggle display of the certain window
2
star
24

detect-mozilla-js-dialect

Script for detecting mozilla js dialect's deprecated syntaxes
Emacs Lisp
2
star
25

userscripts

my userscripts
2
star
26

currentia

A data stream management system that aims to realize the concept of "data stream processing with concurrency control"
C++
2
star
27

ps

simple presentation tool
JavaScript
2
star
28

keyslug

I'm keyslug.
JavaScript
2
star
29

twitter-notification-panel

A Firefox add-on that allows users to check notifications of Twitter from a panel interface
JavaScript
2
star
30

epydoc

pydoc interface for emacs
Emacs Lisp
1
star
31

js-diff

Diff in JavaScript
JavaScript
1
star
32

ecmatch

ECMatch - Pattern match library for ECMAScript (JavaScript)
JavaScript
1
star
33

mooz.github.com

mooz on github
HTML
1
star
34

algo

just a training
Python
1
star