Questions tagged [jsx]
3 questions
5
votes
1 answer
Commenting out some JSX code section with Emacs 27 js-mode
When I comment out (M-x comment-dwim) some section of JSX code with the new js-mode in Emacs 27, it gives:
//
//
//
//
Is there any way to make js-mode behave like it…

cjauvin
- 594
- 4
- 15
1
vote
1 answer
How to automatically use rjsx-mode instead of js-jsx-mode
When I work with JSX files Emacs automatically switches to js-jsx-mode and acts sluggishly. When I switch it to rjsx-mode it works much faster. So the idea is to override one mode with another, so that rjsx-mode is used instead of js-jsx-mode.
What…

Navidot
- 732
- 5
- 12
0
votes
0 answers
any js-mode fails to sync changes properly with lsp-mode
running emacs 28, lsp-mode with ts-ls, doing js,jsx,ts,tsx
in certain jsx files (can't figure out the pattern), the editor and the language server get out of sync very quick/easily and flycheck starts reporting all sorts of weird errors (flycheck…

gdanov
- 101