What is emacs -batch
1 answer
The command line parameter -batch
prevents Emacs from opening an editor window. This allows you to write scripts in Emacs Lisp, scripts that you would otherwise use Ruby, Perl, or Python for.
Just out of the hat, an example that uses the -batch option is e2ansi , a package that allows more
and less
commands to render a file with colors using ANSI sequences based on Emacs syntax highlighting. Obviously this would not work if Emacs opened a window on startup.
+6
source to share