Created
December 20, 2017 17:42
-
-
Save laduke/657b62bebec3c28a6efd76628672de95 to your computer and use it in GitHub Desktop.
Get web-mode inside of yo-yo/bel html template strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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