From c17210b3d0a74a076e16354d85587a29fcaacc9b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 26 Jun 2018 17:07:20 +0200 Subject: Emacs: setup typescript --- emacs/.emacs.d/main.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 18b37c2..c05aac8 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -1963,6 +1963,12 @@ With two prefix arguments, write out the day and month name." js2-strict-missing-semi-warning nil js2-strict-inconsistent-return-warning nil))) +;;;;;;; typescript-mode + +(use-package typescript-mode + :config (progn + (setq typescript-indent-level 2))) + ;;;;;;; rjsx-mode ;; A set of advice for js2-jsx-mode to work better with React. @@ -2047,6 +2053,14 @@ With two prefix arguments, write out the day and month name." (remove-hook 'js2-mode-hook #'lsp-javascript-typescript-enable) (add-hook 'typescript-mode-hook #'lsp-javascript-typescript-enable))) +;;;;;; tide + +;; Let's write some typescript + +(use-package tide + :after (typescript-mode company flycheck) + :hook ((typescript-mode . tide-setup))) + ;;;;;; tern ;; Tern understands javascript. It adds really clever documented -- cgit 1.4.1