Update typescript settings

This commit is contained in:
Maciej 2020-09-19 18:25:51 +03:00
parent 6e0b17c263
commit 276f557e53
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 5 additions and 3 deletions

View file

@ -73,7 +73,7 @@
(plist-get erlang/current-erlang :erlang-path)))
(require 'erlang-start)
(set-indent 2)
(set-indent 4)
(column-enforce-n 80)
;; Set specific ctags command

View file

@ -15,7 +15,7 @@
(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
;; Use js2-mode for typescript editing
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
(add-to-list 'auto-mode-alist '("\\.ts\\'" . js2-mode))
(defun activate-js2-mode ()
"JS2 mode overrides."

View file

@ -40,6 +40,8 @@
'(company-yasnippet capf))
(when (string-match-p "jsx" (buffer-file-name))
(lsp))
(when (string-match-p "tsx" (buffer-file-name))
(lsp)))
(add-hook 'web-mode-hook 'activate-web-mode)