Move *.tsx mode def from module-js to module-web

This commit is contained in:
Henrik Lissner 2016-08-16 09:01:27 +02:00
parent 056e519153
commit f886e273d7
2 changed files with 2 additions and 2 deletions

View file

@ -86,8 +86,7 @@
:config (setq-default coffee-indent-like-python-mode t)) :config (setq-default coffee-indent-like-python-mode t))
(use-package typescript-mode (use-package typescript-mode
:mode (("\\.ts$" . typescript-mode) :mode "\\.ts$"
("\\.tsx$" . web-mode))
:init :init
(add-hook! typescript-mode (add-hook! typescript-mode
'(rainbow-delimiters-mode doom|ts-fontify))) '(rainbow-delimiters-mode doom|ts-fontify)))

View file

@ -19,6 +19,7 @@
"\\.jsp$" "\\.jsp$"
"\\.as[cp]x$" "\\.as[cp]x$"
"\\.mustache$" "\\.mustache$"
"\\.tsx$"
"wp-content/themes/.+/.+\\.php$") "wp-content/themes/.+/.+\\.php$")
:init :init
(add-hook 'web-mode-hook 'turn-off-smartparens-mode) (add-hook 'web-mode-hook 'turn-off-smartparens-mode)