diff options
author | Alan Pearce | 2016-01-04 14:35:31 +0100 |
---|---|---|
committer | Alan Pearce | 2016-01-04 14:35:31 +0100 |
commit | 053df601845b618847d56f837b9e33c4b52fcdca (patch) | |
tree | 57f412d07102bce89fe1c3ee29de559f021c6400 | |
parent | 4e27638ec46cee2fdf7c7d838a5375b66c00939d (diff) | |
download | dotfiles-053df601845b618847d56f837b9e33c4b52fcdca.tar.lz dotfiles-053df601845b618847d56f837b9e33c4b52fcdca.tar.zst dotfiles-053df601845b618847d56f837b9e33c4b52fcdca.zip |
Emacs: Use web-mode for jsx files
-rw-r--r-- | tag-emacs/emacs.d/init.org | 25 |
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=. |