From b86d3c00098045d55d30ea1e44d658a779b0e51c Mon Sep 17 00:00:00 2001 From: Jeff Kreeftmeijer Date: Thu, 2 May 2024 17:39:00 +0200 Subject: [PATCH] Enable markdown-mode for .mdx files --- default.el | 3 ++- emacs-configuration.org | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/default.el b/default.el index 9ef7377..841c50f 100644 --- a/default.el +++ b/default.el @@ -152,7 +152,8 @@ end tell")) :ensure t) (use-package markdown-mode - :ensure t) + :ensure t + :mode ("\\.mdx\\'" . markdown-mode)) (use-package nix-mode :ensure t) diff --git a/emacs-configuration.org b/emacs-configuration.org index 7d48628..39af035 100644 --- a/emacs-configuration.org +++ b/emacs-configuration.org @@ -970,10 +970,13 @@ In addition to the list of already installed major modes, this configuration add **** markdown-mode +There is currently no Emacs major mode for [[https://github.com/mdx-js/mdx][MDX]], so enable [[https://jblevins.org/projects/markdown-mode/][Markdown-mode]] for files with a =.mdx= extension: + #+headers: :tangle default.el #+begin_src emacs-lisp (use-package markdown-mode - :ensure t) + :ensure t + :mode ("\\.mdx\\'" . markdown-mode))) #+end_src **** nix-mode