jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 57 forks source link

How to customize org-msg-default-style #115

Closed roblem closed 3 years ago

roblem commented 3 years ago

First off, this package has brought me back to using email in emacs, so thanks!

I saw that there are numerous entries for each language in org-msg-default-style like this:

(code src\ src-python ((color . "#333333")
      (background-color . "#FFFFFF")))

which is produced by combining a list of src languages and font and background colors from here. Unfortunately, the default background face-color that org-msg is grabbing is white and looks like this:

email example

Rather than something like this:

emacs-html-export

Note: this latter example is from an orgmode export to html, and to get this I also had to create an example class to get output to have the light yellow background. So I used this in the header of the orgmode file:

#+HTML_HEAD_EXTRA: <style type='text/css'>pre.src {background-color: #eee;}</style>
#+HTML_HEAD_EXTRA: <style type='text/css'>.example {background-color: #fff8dc;}</style>

What is the recommended way of altering the default style and adding extra classes (like example blocks)?

roblem commented 3 years ago

I see some hints https://github.com/jeremy-compostella/org-msg/issues/5#issuecomment-510256849 that I will try.