In my emacs I use a dark background with a light color for text and
have the impression that it is less painful on the eyes that the more
common black-on-white. So far so nice, but when I want to export
buffer contents to HTML using htmlize-buffer
to post it here, I get
the same light on black which seems incompatible with the design of
this blog. The solution is to advise the function
htmlize-buffer
to temporarily change the default face (that’s where
I changed the colors to light on black) when the conversion is
done. The actual code for the .emacs
-file is as follows:
EDIT 2010-12-28: If your aquamacs is using htmlfontify instead of
htmlize then you can still use the code above. All you have to do is
change htmlize-buffer-1
into hfy-fontify-buffer
.
marcop, 17 May 2012: Works like a charm, elegant and simple. Made my day! I struggled a bit to find it though... go light-on-dark! (even on the Mac :)