Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the support for TSX be the same as JSX ? #136

Open
angelporo opened this issue Aug 29, 2021 · 1 comment
Open

Can the support for TSX be the same as JSX ? #136

angelporo opened this issue Aug 29, 2021 · 1 comment

Comments

@angelporo
Copy link

As the title

@zhyuanyuan
Copy link

oh. I find how to solve this problem. this is my configure.

;;; zencoding
(use-package emmet-mode
:ensure t
:defer 2
:commands emmet-mode
:hook
((web-mode css-mode sgml-mode rjsx-mode typescript-mode js2-mode) . emmet-mode)
:init
(setq emmet-indent-after-insert nil)
(setq emmet-indentation 2)
(setq emmet-expand-jsx-className? t) ; 设置jsx 语法
(setq emmet-move-cursor-between-quotes t)
(setq emmet-self-closing-tag-style " /")

:config
(add-to-list 'emmet-jsx-major-modes 'js-mode)
(add-to-list 'emmet-jsx-major-modes 'typescript-mode)
;; (setq emmet-jsx-className-braces? t) ; className={}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants