Every time I open a .js file with Spacemacs, the default mode is web-mode
. But what I want is react-mode
.
Is there any way to achieve this ? Thanks.
I found some information from #4751.
We can simply add (add-to-list 'auto-mode-alist '("\\.js\\'" . react-mode))
to docspacemacs/user-config
in .spacemacs
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With