all repos — nixfiles @ c17210b3d0a74a076e16354d85587a29fcaacc9b

System and user configuration, managed by nix and home-manager

Emacs: setup typescript

Alan Pearce
commit

c17210b3d0a74a076e16354d85587a29fcaacc9b

parent

edf324f7ce1940ef7f5ecd94ecb49f5d973ec65c

1 file changed, 14 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1963,6 +1963,12 @@ js2-highlight-level 1
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.
@@ -2046,6 +2052,14 @@ :if (executable-find "javascript-typescript-langserver")
:config (progn (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