From 055bc788e587acab7c3d15f69870cec7ba156abc Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 8 May 2024 13:26:12 -0400 Subject: [PATCH] Use gfm-mode for markdown files --- emacs/.emacs.d/config/init-markdown.el | 7 +++++++ emacs/.emacs.d/init.el | 1 + 2 files changed, 8 insertions(+) create mode 100644 emacs/.emacs.d/config/init-markdown.el diff --git a/emacs/.emacs.d/config/init-markdown.el b/emacs/.emacs.d/config/init-markdown.el new file mode 100644 index 0000000..bf1876f --- /dev/null +++ b/emacs/.emacs.d/config/init-markdown.el @@ -0,0 +1,7 @@ +;; -*- lexical-binding: t; -*- + +(use-package markdown-mode + :mode (("\\.md\\'" . gfm-mode) + ("\\.markdown\\'" . gfm-mode))) + +(provide 'init-markdown) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 8742505..eb761c8 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -104,6 +104,7 @@ (require 'init-ruby) (require 'init-rust) (require 'init-web) +(require 'init-markdown) (require 'init-astro) (require 'init-xml) (require 'init-yaml)