1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-27 13:13:12 -05:00

Replace js2-mode with rjsx-mode

This commit is contained in:
Jack Foltz 2019-07-09 19:05:01 -04:00
parent 626fe9737f
commit 6ab13142fe
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -244,7 +244,7 @@ doesn't cover properly by default.
image-dired image-dired
info info
ivy ivy
js2-mode rjsx-mode
log-view log-view
man man
neotree neotree
@ -1180,9 +1180,10 @@ Jedi for autocompletion sources in python-mode.
:company python-mode) :company python-mode)
#+END_SRC #+END_SRC
*** Javascript *** Javascript
[[https://github.com/mooz/js2-mode][js2-mode]] improves the default js mode. rjsx-mode includes a javascript mode with support for react jsx files.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package js2-mode (use-package rjsx-mode
:pin melpa
:mode "\\.js\\'" :mode "\\.js\\'"
:interpreter "node") :interpreter "node")
#+END_SRC #+END_SRC