Add org-mime

This commit is contained in:
Dimitri Lozeve 2023-08-08 18:14:15 +02:00
parent f4693a048a
commit af8ec0d4ac

19
init.el
View file

@ -385,6 +385,25 @@
(require 'ox-md)) (require 'ox-md))
(use-package org-mime
:straight t
:after (org)
:config
(setq org-mime-export-options
'(:section-numbers nil
:with-author nil
:with-toc nil))
(add-hook 'org-mime-html-hook
(lambda ()
(org-mime-change-element-style
"pre" (format "color: %s; background-color: %s; padding: 0.5em;"
"#E6E1DC" "#232323"))))
;; the following can be used to nicely offset block quotes in email bodies
(add-hook 'org-mime-html-hook
(lambda ()
(org-mime-change-element-style
"blockquote" "border-left: 2px solid gray; padding-left: 4px;"))))
(use-package ox-pandoc (use-package ox-pandoc
:straight t :straight t
:after (org) :after (org)