From 0aa619200faef6c1048f72cbffcf70005da277d3 Mon Sep 17 00:00:00 2001 From: jdormit Date: Fri, 4 Oct 2024 12:26:58 -0400 Subject: [PATCH] Add new mode hooks for markdown and js --- emacs/.emacs.d/config/init-js.el | 2 ++ emacs/.emacs.d/config/init-markdown.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-js.el b/emacs/.emacs.d/config/init-js.el index d10dc0b..f63f892 100644 --- a/emacs/.emacs.d/config/init-js.el +++ b/emacs/.emacs.d/config/init-js.el @@ -40,6 +40,8 @@ "C-c M-z" #'js-send-buffer-and-go)) (use-package typescript-mode + :mode ("\\.ts\\'" + "\\.mjs\\'") :custom (typescript-indent-level 2)) diff --git a/emacs/.emacs.d/config/init-markdown.el b/emacs/.emacs.d/config/init-markdown.el index e3f9507..6c80e41 100644 --- a/emacs/.emacs.d/config/init-markdown.el +++ b/emacs/.emacs.d/config/init-markdown.el @@ -2,7 +2,8 @@ (use-package markdown-mode :mode (("\\.md\\'" . gfm-mode) - ("\\.markdown\\'" . gfm-mode)) + ("\\.markdown\\'" . gfm-mode) + ("\\.mdx\\'" . gfm-mode)) :custom (markdown-fontify-code-blocks-natively t))