From b90499a853af6057c17dadb67b7ede90062fe5e5 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sat, 17 Feb 2024 18:24:34 -0500 Subject: [PATCH] fix(emacs): configure rjsx-mode hooks Signed-off-by: Lucas Sta Maria --- .emacs.d/include/misc.el | 4 ++++ .emacs.d/init.el | 1 + 2 files changed, 5 insertions(+) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index 0445b92..3fd347a 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -348,5 +348,9 @@ (windmove-left) (windmove-left))))) +;; rjsx + +(setq auto-mode-alist (cons '("\\.tsx$" . rjsx-mode) auto-mode-alist)) + (provide 'misc) ;;; misc.el ends here diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 769c7ce..5c6b44e 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -156,6 +156,7 @@ (add-hook 'go-mode-hook #'lsp) (add-hook 'tuareg-mode-hook #'lsp) (add-hook 'haskell-mode-hook #'lsp) +(add-hook 'rjsx-mode-hook #'lsp) (add-hook 'java-mode-hook #'eglot-java-mode) (add-hook 'emacs-lisp-mode-hook #'paredit-mode)