emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] htmlize doesn't work in --batch mode


From: Bastien
Subject: Re: [O] htmlize doesn't work in --batch mode
Date: Wed, 19 Sep 2012 19:03:53 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Hi Dmitri,

Dmitri Makarov <address@hidden> writes:

> If anyone interested, it's easy to explicitly load the required ELPA
> packages in batch mode.  For example, the following command loads htmlize
> for publishing org files in batch mode
>
> emacs --batch -l ~/.emacs.d/init.el --eval "(progn (add-to-list 'load-path
> \"~/.emacs.d/elpa/htmlize-20120616.1716\") (require 'htmlize))" -f
> org-publish-all
>
> It should be easy to include such a command in a makefile or build.xml and
> automatically locate the latest installation of necessary packages rather
> than explicitly specifying the path.

I let Achim be the final judge on this -- my intuitions in this areas
are just too fragile.  But my gut feeling is that this would be too
complicated, and the solution above is simple enough.

> Still I wonder why ELPA packages are not loaded by default in --batch
> mode even though (package-initialize) is being evaluated.

Please ask this on the emacs-devel mailing list, I'm sure this will help
many other users.  Several users (including me) have been puzzled by the
way ELPA packages are loaded/initialized in Emacs.

Best,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]