;;; init-markdown.el --- .Emacs Configuration -*- lexical-binding: t -*- ;;; Commentary: ;; ;;; Code: (use-package markdown-mode :pin "MELPA" :mode (("\\.markdown\\'" . markdown-mode) ("\\.md\\'" . markdown-mode)) :config ;;---------------------------------------------------------------------------- ;; Generated HTML 5 and UTF-8 with Markdown ;;---------------------------------------------------------------------------- (eval-after-load "markdown-mode" '(defalias 'markdown-add-xhtml-header-and-footer 'as/markdown-add-xhtml-header-and-footer)) (defun as/markdown-add-xhtml-header-and-footer (title) "Wrap XHTML header and footer with given TITLE around current buffer." (goto-char (point-min)) (insert "\n" "\n" "
\n