aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs/lisp/evil-collection/modes/js2-mode/README.org
blob: 3639801d8364536528bd48bf322e2282a72cc671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
* js2-mode

  Evil compatibility for [[https://github.com/mooz/js2-mode][js2-mode]]. No key bindings.

  Adds a hook to =js2-mode-hook= and =js2-jsx-mode-hook= that sets the
  buffer-local =evil-shift-width= to match =js-indent-level=, so =>>= and
  =<<= indent by the same amount js2-mode does.

** New commands

   - =evil-collection-js2-set-evil-shift-width= - Sync =evil-shift-width=
     with =js-indent-level= in the current buffer.