Skip to content

Commit

Permalink
Fix react magic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EMayej authored and TheBB committed Feb 9, 2016
1 parent 5bdb8ae commit de7eb40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions layers/+frameworks/react/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
ES6 and JSX ready configuration layer for React
It will automatically recognize =.jsx= and =.react.js= files

It will also recognize =/** @jsx React.DOM */= if it is the first line.

** Features
- on-the-fly syntax checking
- proper syntax highlight and indentation with jsx
Expand Down
2 changes: 1 addition & 1 deletion layers/+frameworks/react/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(add-to-list 'auto-mode-alist '("\\.react.js\\'" . react-mode))
(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 '("/\\*\\* @jsx React\\.DOM \\*/" . react-mode))
(defun spacemacs//setup-react-mode ()
"Adjust web-mode to accommodate react-mode"
(emmet-mode 0)
Expand Down

0 comments on commit de7eb40

Please sign in to comment.