Compare commits
2 commits
b9b4d04bbb
...
4aca751165
| Author | SHA1 | Date | |
|---|---|---|---|
| 4aca751165 | |||
| 924bf25d39 |
1 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue