Emacs major mode for vue.js based on mmm-mode
.
Add
(vue-mode :location (recipe
:fetcher github
:repo "codefalling/vue-mode"))
to your packages
.and
(defun your-layer-name/init-vue-mode ()
(use-package vue-mode))
to your package.el
.
And you could custom the region background color if you need (default is highlight):
(defun your-layer-name/init-vue-mode ()
(use-package vue-mode
:config
;; 0, 1, or 2, representing (respectively) none, low, and high coloring
(setq mmm-submode-decoration-level 0)))
js2-mode
does not yet work with "multi-mode" modes such as mmm-mode. See mooz/js2-mode#124.
M-x vue-mode-reparse