Set up Typescript mode

This commit is contained in:
Jeremy Dormitzer 2019-12-19 16:59:55 -05:00
parent e6ec9d57c8
commit b5f3cd1fdd

View File

@ -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