summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org12
1 files changed, 10 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 5c44022e..15702067 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2099,8 +2099,7 @@ an AST internally, so it can work with it almost like a lisp.
 
 #+BEGIN_SRC emacs-lisp
 (use-package js2-mode
-  :mode (("\\.js\\'" . js2-mode)
-         ("\\.jsx\\'" . js2-jsx-mode))
+  :mode (("\\.js\\'" . js2-mode))
   :interpreter ("node" . js2-mode)
   :functions js2-next-error
   :config (progn
@@ -2124,6 +2123,15 @@ an AST internally, so it can work with it almost like a lisp.
                   js2-strict-missing-semi-warning nil)))
 #+END_SRC
 
+**** rjsx-mode
+
+A set of advice for js2-jsx-mode to work better with React.
+
+#+BEGIN_SRC emacs-lisp
+(use-package rjsx-mode
+  :mode (("\\.jsx\\'" . rjsx-mode)))
+#+END_SRC
+
 **** js2-refactor
 
 Thanks to the AST provided by js2-mode, refactoring is possible.  This