[Top][All Lists]

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

emacs 22.2.1 scripting help

From: Peter Keller
Subject: emacs 22.2.1 scripting help
Date: Wed, 5 Jan 2011 03:43:49 +0000 (UTC)
User-agent: tin/1.9.5-20091224 ("Lochruan") (UNIX) (Linux/2.6.32-27-generic (i686))


I am not an expert in elisp, but have a problem I would like to solve.
I've poked the elisp manual for a while, but am at a loss.

I've written an elisp script whose intention is to load the comida
color theme, customize it with a lisp-mode-hook, load a buffer,
indent it, fontify it, htmlize it, and write it to a new file. This
script is ultimately intended to do batch processing of lisp files
into html documents.

What I can say that does work is the comida color theme is used and it appears
a very small subset of my changes in the lisp-mode-hook are performed, but
not all.

My script can be found at:

To run it, be in a directory full of lisp files and the above script and then:
  emacs --script cssit.el

When run on a lisp file in batch mode, the resultant output doesn't
color all the Common Lisp functions green as an example of its
wrongness. Lisp keywords like :foobar are supposed to be white, but aren't.

I know that with (htmlize-buffer), I have to have the current buffer selected
and have to do the font locking myself. I've done this (or at least I think I
have), but I just can't get the behavior for which I am looking.

If I use htmlize-buffer in an interactive emacs session using the above
lisp-mode-hook and color theme, I get the correct output. I don't know what
is different between the interactive version of emacs and the script I am

Any help would be appreciated.

Thank you.


reply via email to

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