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:
parent
f2f583bfb7
commit
4538225fc5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue