From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: Running emacs lisp programs from command line or script
Date: 11 Dec 2003 07:44:42 +0200 [thread overview]
Message-ID: <ubrqfvrg5.fsf@elta.co.il> (raw)
In-Reply-To: <br8uei$1vjb$1@news.wplus.net> (message from Ryan Newton on Wed, 10 Dec 2003 20:13:42 -0500)
> From: Ryan Newton <newton@ai.mit.edu>
> 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).
next prev parent reply other threads:[~2003-12-11 5:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-11 1:13 Running emacs lisp programs from command line or script Ryan Newton
2003-12-11 5:44 ` Eli Zaretskii [this message]
2003-12-11 6:17 ` Tim Heaney
2003-12-11 17:52 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ubrqfvrg5.fsf@elta.co.il \
--to=eliz@elta.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.