-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Emmet support in React layer #5130
Comments
Was able to do this by setting |
Try this instead: (add-hook 'react-mode-hook
(lambda ()
(setq-local emmet-expand-jsx-className? t))) If it works you can PR it. |
It looks like react-mode doesn't work with emett? I can only get it to work when in web-mode. In react-mode I get the message |
For me after opening a .jsx file I get |
Actually. @TheBB It looks like jsx className is enabled in react-mode by default. I just had to add a hook to enable emmet mode and it worked as expected.
|
Even better 👍 |
Any reason why emmet isn't enabled in react-mode by default? |
No. |
How does emmet know to use html in. Jsx or. React.js and not css expand?
|
Any resolution on this? @begizi I tried everything you've laid out here and only have 'no matches' as you did earlier... |
@sarith That issue went away for me after I added |
@begizi yup that ended up working for me. earlier I had the |
Fixed in 0.200.1 |
When |
Ah btw, this is with emacs-style keys. |
Just as another data point, emmet-mode overwrites |
@tizoc
|
Is it possible to add emmet support in the React Layer?
When working with JSX files it is very nice to be able to use the HTML parts of Emmet, i know there is support in emmet for making class into className etc.
The text was updated successfully, but these errors were encountered: