What is emacs -batch

I am trying to understand the difference between these two lines of code:

emacs - package -l package.el

emacs -l package.el

Many thanks. Why is a package required here?

+3


source to share


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







All Articles