felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
641 stars 32 forks source link

start with rjsx-mode #96

Closed blutics closed 5 years ago

blutics commented 5 years ago

is there any way to start js files with rjsx mode??

felipeochoa commented 5 years ago

You can either use auto-mode-alist or set a file local mode variable

On Tue, Feb 26, 2019, 5:28 AM Daegun_blutics notifications@github.com wrote:

is there any way to start js files with rjsx mode??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/felipeochoa/rjsx-mode/issues/96, or mute the thread https://github.com/notifications/unsubscribe-auth/ACnMcH4ALBZ55b2Es3RYTsBLFDGZ8sJgks5vRP5EgaJpZM4bRuO5 .

Chipe1 commented 5 years ago

As @felipeochoa mentioned, just add the line (add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode)) to your .emacs or init.el file.