summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-01-04 14:35:31 +0100
committerAlan Pearce2016-01-04 14:35:31 +0100
commit053df601845b618847d56f837b9e33c4b52fcdca (patch)
tree57f412d07102bce89fe1c3ee29de559f021c6400 /tag-emacs
parent4e27638ec46cee2fdf7c7d838a5375b66c00939d (diff)
downloaddotfiles-053df601845b618847d56f837b9e33c4b52fcdca.tar.lz
dotfiles-053df601845b618847d56f837b9e33c4b52fcdca.tar.zst
dotfiles-053df601845b618847d56f837b9e33c4b52fcdca.zip
Emacs: Use web-mode for jsx files
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org25
1 files changed, 13 insertions, 12 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index a35e598..0a4a3ec 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -2039,18 +2039,19 @@ is really nice, because it handles the HTML part the same way in all
 of them as well.
 
 #+BEGIN_SRC emacs-lisp
-(use-package web-mode
-  :mode (("/views/.*\\.php\\'" . web-mode)
-         ("/layouts/.*\\.html\\'" . web-mode)
-         ("/templates/.*\\.php\\'" . web-mode)
-         ("\\.ejs\\'" . web-mode))
-  :config (setq web-mode-code-indent-offset 4
-                web-mode-css-indent-offset 4
-                web-mode-markup-indent-offset 4
-                web-mode-style-padding 0
-                web-mode-script-padding 0
-                web-mode-comment-style 2
-                web-mode-enable-auto-pairing nil))
+  (use-package web-mode
+    :mode (("/views/.*\\.php\\'" . web-mode)
+           ("/layouts/.*\\.html\\'" . web-mode)
+           ("/templates/.*\\.php\\'" . web-mode)
+           ("\\.ejs\\'" . web-mode)
+           ("\\.jsx\\'" . web-mode))
+    :config (setq web-mode-code-indent-offset 4
+                  web-mode-css-indent-offset 4
+                  web-mode-markup-indent-offset 4
+                  web-mode-style-padding 0
+                  web-mode-script-padding 0
+                  web-mode-comment-style 2
+                  web-mode-enable-auto-pairing nil))
 #+END_SRC
 
 I derived a mode for twig, in order to use its =mode-hook=.