fix(javascript): void-function typescript-tsx-mode

Caused when you have :lang web disabled, but :lang javascript enabled.
This is a stopgap until I decide what to do with typescript-tsx-mode.

Fix: #6243
This commit is contained in:
Henrik Lissner 2022-04-06 23:08:47 +02:00
parent f2f583bfb7
commit 4538225fc5
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -93,8 +93,10 @@
(use-package! typescript-mode
:hook (typescript-mode . rainbow-delimiters-mode)
:hook (typescript-tsx-mode . rainbow-delimiters-mode)
:commands typescript-tsx-mode
:init
(when (featurep! :lang web)
(autoload 'typescript-tsx-mode "typescript-mode" nil t))
;; REVIEW We associate TSX files with `typescript-tsx-mode' derived from
;; `web-mode' because `typescript-mode' does not officially support
;; JSX/TSX. See emacs-typescript/typescript.el#4