From 924bf25d39e22c5807edbb7b462d3d005af7e711 Mon Sep 17 00:00:00 2001 From: BirDt_ Date: Sun, 31 May 2026 17:50:45 +0800 Subject: [PATCH] Use typescript-ts-mode instead --- workflows/typescript-custom.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/workflows/typescript-custom.el b/workflows/typescript-custom.el index cbb0bd8..a637b8e 100644 --- a/workflows/typescript-custom.el +++ b/workflows/typescript-custom.el @@ -23,8 +23,8 @@ ;;; Code: ;; More consistent than typescript-ts-mode atm -(use-package typescript-mode - :hook (typescript-mode . eglot-ensure)) +(add-to-list 'auto-mode-alist '("\\.ts\\" . typescript-ts-mode)) +(add-to-list 'auto-mode-alist '("\\.spec.*.ts\\" . typescript-ts-mode)) (use-package tide :init @@ -40,7 +40,9 @@ (add-hook 'before-save-hook 'tide-format-before-save) ;; For typescript-mode - (add-hook 'typescript-mode-hook #'setup-tide-mode)) + (add-hook 'typescript-ts-mode-hook #'setup-tide-mode)) + +(add-hook 'typescript-ts-mode #'combobulate-mode) (provide 'typescript-custom)