# HG changeset patch # User Oleksandr Gavenko # Date 1600768406 -10800 # Node ID 95a7aa1e3e603471b484fc07fa98c26f9556353a # Parent a20b6c6e82a3727feb97563c0565b7799adc3308 Activate typescript mode with eval-after-load as feature isn't registerd during startup process so we cannot detect it earlier. diff -r a20b6c6e82a3 -r 95a7aa1e3e60 .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))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;