From de4aaa4fa9d4c9f7e7b05784395a9685f5ab4184 Mon Sep 17 00:00:00 2001
From: David Li
Date: Sun, 4 Mar 2018 19:49:04 -0500
Subject: Use web-mode for tsx files
---
init.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/init.el b/init.el
index 822d897..2d5e100 100644
--- a/init.el
+++ b/init.el
@@ -191,6 +191,7 @@ This functions should be added to the hooks of major modes for programming."
(flycheck-mode +1)
(setq flycheck-check-syntax-automatically '(save mode-enabled))
(company-mode-on)))
+(add-to-list 'auto-mode-alist `(,(rx ".tsx" string-end) . web-mode))
;; aligns annotation to the right hand side
(setq company-tooltip-align-annotations t)
--
cgit v1.2.3