make web mode use jsx for all js files

This commit is contained in:
Simo-Pekka Kerkelä 2015-08-26 11:26:45 +03:00
parent 3892b42632
commit 11bc7fd5bd

View file

@ -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