help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Running emacs lisp programs from command line or script


From: Tim Heaney
Subject: Re: Running emacs lisp programs from command line or script
Date: Thu, 11 Dec 2003 01:17:46 -0500
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)

Ryan Newton <address@hidden> writes:
>
> If I want to make a command line invokable script to, say, convert
> emacs enriched text documents to plain ones, how do I do it?  I want
> emacs to start up, open said document, save it in plain text mode.
> Easy to write the emacs lisp code, but how do I call it from the
> command line.  What's the "batch" mode for emacs?

Batch. You can just run something like

  emacs -batch -l elispfile -f function inputfile

from the command line. Or make your Emacs Lisp file executable and try
the sesquicolon

  http://mail.gnu.org/archive/html/bug-gnu-emacs/2002-08/msg00229.html

I hope this helps,

Tim


reply via email to

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