This is a thread for smaller, miscellaneous items that might not warrant a full post on their own.
See this search for previous “Weekly Tips, Tricks, &c.” Threads.
Don’t feel constrained in regards to what you post, just keep your post vaguely, generally on the topic of emacs.
I’m an Emacs noob trying to set up an environment for working with React. I have trouble with getting the LS to not mark the embedded templates red in .tsx files, such as this:
import React from 'react'; import ProjectsPage from './projects/ProjectsPage'; function App() { return ; } export default App;
I followed a few steps of the guide [https://vxlabs.com/2022/06/12/typescript-development-with-emacs-tree-sitter-and-lsp-in-2022/](TypeScript development with Emacs, tree-sitter and LSP in 2022) to set up Eglot and a derived mode that specifies the TSX in the name.
This is in my init.el:
The
typescriptreact-mode
is active when i enter a .tsx-file and Eglot connects to the typescript-language-server (version 4.0 is on my path), but it doesn’t seem to tell the LS that this extended syntax should be used. What am I missing?