Add more ts modes
This commit is contained in:
parent
799ad215dc
commit
d9c6ffeb56
6
init.el
6
init.el
|
@ -269,6 +269,9 @@
|
||||||
("\\.ts\\'" . typescript-ts-mode)
|
("\\.ts\\'" . typescript-ts-mode)
|
||||||
("\\.tsx\\'" . tsx-ts-mode)
|
("\\.tsx\\'" . tsx-ts-mode)
|
||||||
("\\.rs\\'" . rust-ts-mode)
|
("\\.rs\\'" . rust-ts-mode)
|
||||||
|
("\\.ya?ml\\'" . yaml-ts-mode)
|
||||||
|
("/Dockerfile\\'" . dockerfile-ts-mode)
|
||||||
|
("\\(/CMakeLists.txt\\|\\.cmake\\)\\'" . cmake-ts-mode)
|
||||||
:hook
|
:hook
|
||||||
(typescript-ts-mode . my--set-tab-width-2)
|
(typescript-ts-mode . my--set-tab-width-2)
|
||||||
(tsx-ts-mode . my--set-tab-width-2)
|
(tsx-ts-mode . my--set-tab-width-2)
|
||||||
|
@ -284,6 +287,7 @@
|
||||||
(add-to-list 'major-mode-remap-alist '(html-mode . html-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(html-mode . html-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(js-mode . js-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(js-mode . js-ts-mode))
|
||||||
(add-to-list 'major-mode-remap-alist '(js-json-mode . json-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(js-json-mode . json-ts-mode))
|
||||||
|
(add-to-list 'major-mode-remap-alist '(conf-toml-mode . toml-ts-mode))
|
||||||
:config
|
:config
|
||||||
(unless my-is-nixos
|
(unless my-is-nixos
|
||||||
(add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter-module/dist/"
|
(add-to-list 'treesit-extra-load-path (expand-file-name "tree-sitter-module/dist/"
|
||||||
|
@ -943,7 +947,7 @@
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . electric-pair-local-mode)
|
(prog-mode . electric-pair-local-mode)
|
||||||
(eval-expression-minibuffer-setup-mode . electric-pair-local-mode)
|
(eval-expression-minibuffer-setup . electric-pair-local-mode)
|
||||||
(slime-repl-mode . electric-pair-local-mode)
|
(slime-repl-mode . electric-pair-local-mode)
|
||||||
(racket-repl-mode . electric-pair-local-mode))
|
(racket-repl-mode . electric-pair-local-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue