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.
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
.
© 2022 - 2024 — McMap. All rights reserved.