Add typescript base config.

This commit is contained in:
kj
2025-02-07 17:40:49 -03:00
parent fb5e2c8455
commit cfef8c9a4a
2 changed files with 8 additions and 1 deletions

View File

@ -14,8 +14,13 @@
:ensure nil
:mode
("\\.js$" . js-mode)
:init
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode))
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
:hook
(js-mode . eglot-ensure)
((js-mode . eglot-ensure)
(tsx-ts-mode . eglot-ensure)
(typescript-ts-mode . eglot-ensure))
:config
(setq js-indent-level 2))