Created
September 12, 2016 06:21
-
-
Save Qquanwei/295a17c9567d2784138198ba8e88fe10 to your computer and use it in GitHub Desktop.
emacs react mode by web-mode and ycmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; autocomplete as javascript | |
(add-to-list 'ycmd-file-type-map '(react-mode . ("javascript"))) | |
(define-derived-mode react-mode web-mode "React-IDE" | |
"Major mode for react/jsx") | |
(add-hook 'react-mode-hook 'ycmd-mode) | |
(add-to-list 'auto-mode-alist '("\\.jsx" . react-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repo : https://github.com/Qquanwei/react-mode