[OS X Emacs] No colored text forr org-publish, htmlize, Aquamacs batch-mode
Saptarshi Guha
saptarshi.guha at gmail.com
Sun Apr 26 23:56:32 EDT 2009
Hello,
Sorry for the very late reply. I tried what you suggested this is make.el
and I run
/Applications/Aquamacs\ Emacs.app/Contents/MacOS/Aquamacs\ Emacs
-batch -l make.el
Yet, i still get the same output.
Any suggestions
Thank you for your time
Regards
Saptarshi
;;;;
(load "/Users/yanger/Library/Preferences/Aquamacs Emacs/customizations.el")
(load "/Users/yanger/Library/Preferences/Aquamacs Emacs/Preferences.el")
(setq org-publish-project-alist
'(
("X-notes"
:base-directory "~/X//org"
:base-extension "org"
:publishing-directory "~/Sites/X/"
:recursive t
:publishing-function org-publish-org-to-html
:headline-levels 4 ; Just the default for this project.
:auto-preamble t
;; :auto-index f ; Generate index.org automagically...
;; :index-filename "sitemap.org" ; ... call it sitemap.org ...
;; :index-title "Sitemap"
)
("X-static"
:base-directory "~X/org"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|tgz"
:publishing-directory "~/Sites/X/"
:recursive t
:publishing-function org-publish-attachment
)
("X" :components ("X-notes" "X-static"))
))
(org-publish (assoc "X" org-publish-project-alist))
;;;
Saptarshi Guha
On Mon, Apr 6, 2009 at 1:36 PM, David Reitter <david.reitter at gmail.com> wrote:
> 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!
More information about the MacOSX-Emacs
mailing list