From b1a648e0cc671872ee409c98dd4893d874649f07 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Thu, 16 Apr 2026 16:35:24 +0200 Subject: [PATCH] Add markdown-mode with live preview and TOC generation --- dotfiles/desktop/.emacs.d/lisp/lang/markdown.el | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dotfiles/desktop/.emacs.d/lisp/lang/markdown.el b/dotfiles/desktop/.emacs.d/lisp/lang/markdown.el index 03c23df..46fd4d5 100644 --- a/dotfiles/desktop/.emacs.d/lisp/lang/markdown.el +++ b/dotfiles/desktop/.emacs.d/lisp/lang/markdown.el @@ -1,8 +1,15 @@ ;;; markdown.el -*- lexical-binding: t; -*- + (use-package markdown-mode :ensure t - :mode ("README\\.md\\'" . gfm-mode) - :init (setq markdown-command "multimarkdown")) + :mode ("\\.md\\'" . gfm-mode) + :config + (setq markdown-fontify-code-blocks-natively t) + (setq markdown-live-preview-mode t)) + +(use-package markdown-toc + :ensure t) + +(provide 'lang/markdown) -(provide 'markdown) ;;; markdown.el ends here