Activate typescript mode with eval-after-load as feature isn't registerd during startup process so we cannot detect it earlier.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 22 Sep 2020 12:53:26 +0300
changeset 1621 95a7aa1e3e60
parent 1620 a20b6c6e82a3
child 1622 954b7c665c1a
Activate typescript mode with eval-after-load as feature isn't registerd during startup process so we cannot detect it earlier.
.emacs-my
--- a/.emacs-my	Tue Sep 01 13:22:16 2020 +0300
+++ b/.emacs-my	Tue Sep 22 12:53:26 2020 +0300
@@ -3346,7 +3346,7 @@
 ;; (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)
+(my--eval-after-load typescript-mode
   (add-to-list 'auto-mode-alist '("\\.tsx?$" . typescript-mode)))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;