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: Eli Zaretskii
Subject: Re: Running emacs lisp programs from command line or script
Date: 11 Dec 2003 07:44:42 +0200

> From: Ryan Newton <address@hidden>
> Newsgroups: gnu.emacs.help
> Date: Wed, 10 Dec 2003 20:13:42 -0500
> 
> 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?

"emacs --help" is your friend, of course ;-)

Sounds like you want "emacs -batch -l yourLisp.elc -eval ..."
(replace the Lisp form you want Emacs to evaluate once it loads your
code in yourLisp.elc).





reply via email to

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