Skip to content

Instantly share code, notes, and snippets.

@laduke
Created December 20, 2017 17:42
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 laduke/657b62bebec3c28a6efd76628672de95 to your computer and use it in GitHub Desktop.
Save laduke/657b62bebec3c28a6efd76628672de95 to your computer and use it in GitHub Desktop.
Get web-mode inside of yo-yo/bel html template strings
(defun aj-javascript/post-init-mmm-mode ()
(with-eval-after-load 'rjsx-mode
(mmm-add-classes '((yo
:submode web-mode
:front "html`"
:back "`"
:face mmm-declaration-submode-face)))
(mmm-add-mode-ext-class 'rjsx-mode nil 'yo)
(setq mmm-parse-when-idle 't)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment