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

add typescript-mode #57

Open
moellep opened this issue Jan 24, 2023 · 4 comments
Open

add typescript-mode #57

moellep opened this issue Jan 24, 2023 · 4 comments

Comments

@moellep
Copy link
Member

moellep commented Jan 24, 2023

Add typescript-mode, possibly from there https://github.com/emacs-typescript

@moellep
Copy link
Member Author

moellep commented Jan 30, 2023

Actually typscript-mode doesn't work fully with react tsx or jsx files, so maybe tsx-mode would be better:
https://github.com/orzechowskid/tsx-mode.el
Although it seems to require a lot of other emacs modules.

@e-carlin
Copy link
Member

Switching to lsp-mode and then using one of the typescript language servers is another option.

@moellep what is it that you want from typescript-mode (ex syntax highlighting)?

@moellep
Copy link
Member Author

moellep commented Jan 30, 2023

Syntax highlighting + correct indentation. Right now using typescript-mode, it badly mangles the react indentation in tsx files.

@robnagler
Copy link
Member

FYI, you may need to set some syntactic entities to match what vs code does. I was just dealing with Java which was getting very badly mangled and adjusted a couple of things that made it better.

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

3 participants