diff --git a/workflows/typescript-custom.el b/workflows/typescript-custom.el index b828c4b..cbb0bd8 100644 --- a/workflows/typescript-custom.el +++ b/workflows/typescript-custom.el @@ -22,8 +22,9 @@ ;;; Code: -(add-to-list 'auto-mode-alist '("\\.ts\\" . typescript-ts-mode)) -(add-to-list 'auto-mode-alist '("\\.spec.*.ts\\" . typescript-ts-mode)) +;; More consistent than typescript-ts-mode atm +(use-package typescript-mode + :hook (typescript-mode . eglot-ensure)) (use-package tide :init @@ -39,9 +40,7 @@ (add-hook 'before-save-hook 'tide-format-before-save) ;; For typescript-mode - (add-hook 'typescript-ts-mode-hook #'setup-tide-mode)) - -(add-hook 'typescript-ts-mode #'combobulate-mode) + (add-hook 'typescript-mode-hook #'setup-tide-mode)) (provide 'typescript-custom)