Compare commits

..

2 commits

Author SHA1 Message Date
4aca751165 comment 2026-05-31 17:52:08 +08:00
924bf25d39 Use typescript-ts-mode instead 2026-05-31 17:50:45 +08:00

View file

@ -22,9 +22,8 @@
;;; Code: ;;; Code:
;; More consistent than typescript-ts-mode atm (add-to-list 'auto-mode-alist '("\\.ts\\" . typescript-ts-mode))
(use-package typescript-mode (add-to-list 'auto-mode-alist '("\\.spec.*.ts\\" . typescript-ts-mode))
:hook (typescript-mode . eglot-ensure))
(use-package tide (use-package tide
:init :init
@ -40,7 +39,9 @@
(add-hook 'before-save-hook 'tide-format-before-save) (add-hook 'before-save-hook 'tide-format-before-save)
;; For typescript-mode ;; 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) (provide 'typescript-custom)