react: improved react file recognition
This commit is contained in:
parent
9a14373845
commit
12f823ba3c
1 changed files with 1 additions and 1 deletions
|
@ -65,5 +65,5 @@
|
|||
(add-to-list 'auto-mode-alist '("\\index.android.js\\'" . react-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\index.ios.js\\'" . react-mode))
|
||||
(add-to-list 'magic-mode-alist '("/\\*\\* @jsx React\\.DOM \\*/" . react-mode))
|
||||
(add-to-list 'magic-mode-alist '("^import React" . react-mode))
|
||||
(add-to-list 'magic-mode-alist '("import\s+[^\s]+\s+from\s+['\"]react['\"]" . react-mode))
|
||||
(add-hook 'react-mode-hook 'spacemacs//setup-react-mode))
|
||||
|
|
Reference in a new issue