Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
(set-web-mode-content-type "jsx") in web-mode hook doesn't do anything #452
I'm trying to enable jsx support by default for all js files.
(add-hook 'web-mode-hook (lambda () (web-mode-set-content-type "jsx") (message "now set to: %s" web-mode-content-type)))
When I open a file, web mode is enabled, but jsx is not highlighted.
Well, the first time I wrote this piece, executed it in place (in init.el) and reopened buffers (no effect), then just restarted emacs and it worked; I don't know emacs internals well enough to determine if there is an actual problem or it's just my setup or something else.