add js log key bindings to react layer

This commit is contained in:
Mike Holm 2020-04-10 11:30:03 -06:00 committed by Maximilian Wolff
parent d6ad9ec120
commit 23133adbe2
2 changed files with 3 additions and 0 deletions

View file

@ -132,6 +132,7 @@ concatenations and contiguous function calls:
|---------------+----------------------------------------------------------------------------------|
| ~<~ | inserts </> whenever it would start a new JSX node |
| ~>~ | right before the slash in a self-closing tag automatically inserts a closing tag |
| ~SPC m r l t~ | log thing at point |
| ~SPC m r r t~ | rename tag at point |
** Formatting (web-beautify)

View file

@ -81,10 +81,12 @@
:config
;; declare prefix
(spacemacs/declare-prefix-for-mode 'rjsx-mode "mr" "refactor")
(spacemacs/declare-prefix-for-mode 'rjsx-mode "mrl" "localize/log")
(spacemacs/declare-prefix-for-mode 'rjsx-mode "mrr" "rename")
(spacemacs/declare-prefix-for-mode 'rjsx-mode "mh" "documentation")
(spacemacs/declare-prefix-for-mode 'rjsx-mode "mg" "goto")
(spacemacs/set-leader-keys-for-major-mode 'rjsx-mode "rlt" 'js2r-log-this)
(spacemacs/set-leader-keys-for-major-mode 'rjsx-mode "rt" 'rjsx-rename-tag-at-point)
(with-eval-after-load 'rjsx-mode