I find the default syntax highlighting for JavaScript and TypeScript to be lacking slightly.

For example, s there a package equivalent to vim-polyglot for Emacs? I have tried Emacs tree-sitter but it seems to overwrite or theme colors.

  • You find the highlighting "to be lacking slightly"? How so? That's unclear - too vague, and it encourages opinion-based answers.
    – Drew
    Jan 2, 2022 at 18:58

1 Answer 1


js2-mode has been my recommendation for a while, though I don’t believe the original author is still maintaining it. There is also a js3-mode which I haven’t tried yet; I believe it has some improvements over js2-mode.

  • Is js3 maintained? The version from MELPA is 20160515.1550 and the github site hasn't seen an update in seven years. I tried it, had problems, gave up and went back to the builtin js.el just to get things working again. I'll try js2 at some point...
    – NickD
    Mar 10, 2023 at 20:02
  • Does it need to be maintained? Has Javascript changed much since 2016?
    – db48x
    Mar 10, 2023 at 20:10
  • I guess not, but Emacs certainly has: the problems I had were trying to load the darn thing into Emacs.
    – NickD
    Mar 10, 2023 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.