Skip to content

Commit

Permalink
Enable markdown-mode for .mdx files
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkreeftmeijer committed May 2, 2024
1 parent eea06d1 commit b86d3c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion default.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion emacs-configuration.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b86d3c0

Please sign in to comment.