Created
January 3, 2018 05:09
-
-
Save SanCoder-Q/e65f6702efe8bc4570c04a845cefd0f5 to your computer and use it in GitHub Desktop.
Make emacs web-mode force to load as .jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook 'web-mode-hook | |
(lambda () | |
;; short circuit js mode and just do everything in jsx-mode | |
(if (equal web-mode-content-type "javascript") | |
(web-mode-set-content-type "jsx") | |
(message "now set to: %s" web-mode-content-type)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment