]> code.delx.au - dotemacs/commitdiff
jsx-mode for tsx files
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 14 Sep 2020 12:46:06 +0000 (22:46 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 14 Sep 2020 12:46:06 +0000 (22:46 +1000)
lisp/my-file-modes.el

index 9d8abc80b5802dc099fe882aa01f1aef488dcb7a..9976eae049719d16d8874b3c0bfcfff1148f46dd 100644 (file)
@@ -63,6 +63,7 @@
 (setq js2r-prefered-quote-type 2)
 
 (require 'rjsx-mode)
+(add-to-list 'auto-mode-alist '("\\.tsx\\'" . js2-jsx-mode))
 
 
 (require 'ledger-mode nil 'noerror)