Emacs Lisp: Run Elisp Script in Shell (batch mode)

From http://ergoemacs.org/emacs/elisp_running_script_in_batch_mode.html

Emacs Lisp: Run Elisp Script in Shell (batch mode)

You can run emacs lisp script in shell (terminal), using the --script option. For example:

emacs --script process_log.el

Here’s a table of most useful options for running emacs lisp as a script.

Full Name Short Name Meaning
--no-init-file -q Do not load your init files {~/.emacs, ~/.emacs.el, ~/.emacs.d/init.el} nor site-wide default.el.
--no-site-file Do not load the site-wide site-start.el.
--batch Do not launch emacs as a editor. Use it together with --load to specify a lisp file. This implies --no-init-file but not --no-site-file.
--load="path" -l path Execute the elisp file at path.
--script path Run emacs like --batch with --load set to path.

For a complete list, see:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s