From af8ec0d4ac1dc2f33b3ec5f6802995e30f4b05c1 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Tue, 8 Aug 2023 18:14:15 +0200 Subject: [PATCH] Add org-mime --- init.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/init.el b/init.el index 5ca555e..c6be7bd 100644 --- a/init.el +++ b/init.el @@ -385,6 +385,25 @@ (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 :straight t :after (org)