summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2018-03-04 19:49:04 -0500
committerDavid Li <li.davidm96@gmail.com>2018-03-04 19:49:04 -0500
commitde4aaa4fa9d4c9f7e7b05784395a9685f5ab4184 (patch)
tree5df02c037f7b52433b73c81d941ac8fa939155cb
parent0bcda96e065ec0546bb4cd58fec83184d87e9aca (diff)
Use web-mode for tsx files
-rw-r--r--init.el1
1 files changed, 1 insertions, 0 deletions
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)