From 35679fb33f87601b7bca2f3bddd80ce543d748ae Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 29 Apr 2022 14:25:22 -0700 Subject: my-text: add markdown to auto-mode --- emacs/custom/my-text.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emacs') diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el index 53a3c19..b4f7c28 100644 --- a/emacs/custom/my-text.el +++ b/emacs/custom/my-text.el @@ -14,6 +14,8 @@ (dolist (hook '(prog-mode-hook conf-mode-hook)) (add-hook hook 'flyspell-prog-mode)) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) + (customize-set-variable 'markdown-fontify-code-block-natively t) (when (executable-find "pandoc") (customize-set-variable 'markdown-command "pandoc -f markdown -t html")) -- cgit 1.4.1