From 487ce00922571f84918e99ade678fe83d55bd6e0 Mon Sep 17 00:00:00 2001 From: felipe Date: Mon, 9 Oct 2017 15:22:04 +0200 Subject: [PATCH] [feat] Add the magic `>` note to the README --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86f8e82..1c4a9d0 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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