From 11bc7fd5bd446bfc2449c9ac26d855503ab98687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simo-Pekka=20Kerkel=C3=A4?= Date: Wed, 26 Aug 2015 11:26:45 +0300 Subject: [PATCH] make web mode use jsx for all js files --- init-template.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init-template.el b/init-template.el index 62b1334..f35c1f3 100644 --- a/init-template.el +++ b/init-template.el @@ -172,6 +172,8 @@ (setq web-mode-code-indent-offset 2)) (add-hook 'web-mode-hook 'my-web-mode-hook) +(setq web-mode-content-types-alist + '(("jsx" . "\\.js[x]?\\'"))) (provide 'init) ;;; init.el ends here