diff --git a/layers/+frameworks/react/README.org b/layers/+frameworks/react/README.org index effaab853..619d2ca25 100644 --- a/layers/+frameworks/react/README.org +++ b/layers/+frameworks/react/README.org @@ -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) diff --git a/layers/+frameworks/react/packages.el b/layers/+frameworks/react/packages.el index e5c144d29..4514dd027 100644 --- a/layers/+frameworks/react/packages.el +++ b/layers/+frameworks/react/packages.el @@ -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