Enable typescript-mode for .tsx files.
--- a/.emacs-my Thu Mar 26 14:58:47 2020 +0200
+++ b/.emacs-my Wed May 27 13:28:47 2020 +0300
@@ -3324,7 +3324,7 @@
(define-key sml-mode-map (kbd "C-c C-p") 'sml-send-function))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(message "javascript, js")
+(message "javascript, js, typescript")
(if (>= emacs-major-version 23)
(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
@@ -3342,6 +3342,9 @@
;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
+(when (featurep 'typescript-mode)
+ (add-to-list 'auto-mode-alist '("\\.tsx?$" . typescript-mode)))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(message "json")