react: set emmet-expand-jsx-className? to t

This commit is contained in:
syl20bnr 2018-05-19 01:15:04 -04:00
parent 214e5a847d
commit 8fd934c209
2 changed files with 7 additions and 1 deletions

View file

@ -49,6 +49,12 @@
(message "`lsp' layer is not installed, please add `lsp' layer to your dofile.")))
;; Emmet
(defun spacemacs/react-emmet-mode ()
"Activate `emmet-mode' and configure it for local buffer."
(emmet-mode)
(setq-local emmet-expand-jsx-className? t))
;; Others
(defun inside-string-q ()
"Returns non-nil if inside string, else nil.

View file

@ -30,7 +30,7 @@
(add-hook 'rjsx-mode-local-vars-hook #'spacemacs//react-setup-company))
(defun react/post-init-emmet-mode ()
(add-hook 'rjsx-mode-hook 'emmet-mode))
(add-hook 'rjsx-mode-hook 'spacemacs/react-emmet-mode))
(defun react/post-init-evil-matchit ()
(with-eval-after-load 'evil-matchit