[OS X Emacs] No colored text forr org-publish, htmlize, Aquamacs batch-mode

David Reitter david.reitter at gmail.com
Mon Apr 6 13:36:39 EDT 2009

On Mar 31, 2009, at 3:58 PM, Saptarshi Guha wrote:

> Hello,
> i have some org-files which contain #+BEGIN_SRC R snippets.
> When i execute org-publish via Aquamacs (running as a GUI), i get
> colored output that reflects Aquamacs GUI font-lock mode.
> However, I also sometimes do a batch mode publish
> /Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs -l
> ~/orgpub.el  -batch --eval '(org-publish (assoc "rhipe"
> org-publish-project-alist))'
> Though the text is fontified the fonts are those that I would have got
> had my terminal been colorless (though running -nw and R-mode is fully
> colored)
> e.g <- is underlined.
> Q: How can I force htmlize to use the color-scheme of GUI Aquamacs?

It seems that the customization file isn't loaded when running in  
batch mode. You can manually load it like this:

/Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs - 
batch --eval '(progn (load custom-file) .......)'

Hope that helps.

http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090406/2c1a616f/attachment.p7s>

More information about the MacOSX-Emacs mailing list