Skip to content

Instantly share code, notes, and snippets.

@dwinston
Forked from dgellow/mmm-jsx.el
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwinston/a2c31bb2113e5e74e5d7 to your computer and use it in GitHub Desktop.
Save dwinston/a2c31bb2113e5e74e5d7 to your computer and use it in GitHub Desktop.
(require 'mmm-mode)
(mmm-add-classes
'((jsx
:submode web-mode
:front "\\((\\)[[:space:]\n]*<"
:front-match 1
:back ">[[:space:]\n]*\\()\\)"
:back-match 1)))
(setq mmm-global-mode 'maybe)
(mmm-add-mode-ext-class 'js2-mode "\\.jsx\\'" 'jsx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment