Skip to content

Commit

Permalink
[feat] Add the magic > note to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeochoa committed Oct 9, 2017
1 parent 6ba2fab commit 487ce00
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ JSX elements less repetitive:

* `<` inserts `</>` whenever it would start a new JSX node (and simply
inserts `<` otherwise)
* `C-d` when deleting the slash in a self-closing tag automatically
inserts a closing tag and places point inside the element
* `>` or `C-d` right before the slash in a self-closing tag
automatically inserts a closing tag and places point inside the
element

The result is you can do the following:

Expand All @@ -58,7 +59,8 @@ your init file:
```elisp
(with-eval-after-load 'rjsx-mode
(define-key rjsx-mode-map "<" nil)
(define-key rjsx-mode-map (kbd "C-d") nil))
(define-key rjsx-mode-map (kbd "C-d") nil)
(define-key rjsx-mode-map ">" nil))
```

Additionally, since `rjsx-mode` extends the `js2` AST, utilities using the
Expand Down

0 comments on commit 487ce00

Please sign in to comment.