From b5f3cd1fdd1c4129cd0aca7f9f4056e5be7ca3f6 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 19 Dec 2019 16:59:55 -0500 Subject: [PATCH] Set up Typescript mode --- emacs/init.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index cef1acb..3e8843b 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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