Set up Typescript mode
This commit is contained in:
parent
e6ec9d57c8
commit
b5f3cd1fdd
@ -1536,6 +1536,14 @@ A command to format JS via prettier:
|
||||
(shell-command-on-region start end (concat "prettier --parser " parser) nil t)))
|
||||
#+END_SRC
|
||||
|
||||
* Typescript
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package typescript-mode
|
||||
:mode ("\\.ts\\'")
|
||||
:config
|
||||
(with-eval-after-load 'lsp
|
||||
(add-hook 'typescript-mode-hook 'lsp)))
|
||||
#+END_SRC
|
||||
* LSP Mode
|
||||
Emacs support for the Language Server Protocol
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user