From 7c0f97ebe927172d970f871a7d30df8f00da7813 Mon Sep 17 00:00:00 2001 From: Taiju HIGASHI Date: Mon, 14 Nov 2022 17:51:02 +0900 Subject: [PATCH] emacs: Add the auto-mode setting for JSX. --- emacs.d/.emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs.d/.emacs.d/init.el b/emacs.d/.emacs.d/init.el index 1c049cd..dfd009a 100644 --- a/emacs.d/.emacs.d/init.el +++ b/emacs.d/.emacs.d/init.el @@ -29,3 +29,5 @@ (add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode)) (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) + +(add-to-list 'auto-mode-alist '("\\.[jt]sx\\'" . js-jsx-mode)) -- 2.45.2