195 |
or @samp{-f} option will be used as well, to invoke a Lisp program |
or @samp{-f} option will be used as well, to invoke a Lisp program |
196 |
to do the batch processing. |
to do the batch processing. |
197 |
|
|
198 |
@samp{-batch} implies @samp{-q} (do not load an init file). It also |
@samp{--batch} implies @samp{-q} (do not load an init file). It also |
199 |
causes Emacs to exit after processing all the command options. In |
causes Emacs to exit after processing all the command options. In |
200 |
addition, it disables auto-saving except in buffers for which it has |
addition, it disables auto-saving except in buffers for which it has |
201 |
been explicitly requested. |
been explicitly requested. |
202 |
|
|
203 |
|
@item --script @var{file} |
204 |
|
@opindex --script |
205 |
|
Run Emacs in batch mode, like @samp{--batch}, and then read and |
206 |
|
execute the Lisp code in @var{file}. |
207 |
|
|
208 |
|
The normal use of this option is in executable script files that run |
209 |
|
Emacs. They can start with this text on the first line |
210 |
|
|
211 |
|
@example |
212 |
|
#!/usr/bin/emacs --script |
213 |
|
@end example |
214 |
|
|
215 |
|
@noindent |
216 |
|
which will invoke Emacs with @samp{--script} and supply the name of |
217 |
|
the script file as @var{file}. Emacs Lisp then treats @samp{#!} as a |
218 |
|
comment delimiter. |
219 |
|
|
220 |
@item -q |
@item -q |
221 |
@opindex -q |
@opindex -q |
222 |
@itemx --no-init-file |
@itemx --no-init-file |