react: set emmet-expand-jsx-className? to t
This commit is contained in:
parent
214e5a847d
commit
8fd934c209
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue