Skip to content

Instantly share code, notes, and snippets.

@mjason
Created September 25, 2015 05:48
Show Gist options
  • Save mjason/ff54833b018df0020688 to your computer and use it in GitHub Desktop.
Save mjason/ff54833b018df0020688 to your computer and use it in GitHub Desktop.
react native emacs setting
;; please install web-mode
;; in your .emacs.d/init.el
(add-to-list 'auto-mode-alist '(".*/react/.*\\.js[x]?\\'" . web-mode))
(setq web-mode-content-types-alist
'(("jsx" . "/.*/react/.*\\.js[x]?\\'")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment