Sometimes I want to run emacs in batch mode, and in such cases I want to avoid doing certain things in my init, such as starting the emacs server. Is there any way to test from within Emacs Lisp whether Emacs is running in batch mode?
From http://www.gnu.org/software/emacs/manual/html_node/elisp/Batch-Mode.html
-- Variable: noninteractive
This variable is non-nil when Emacs is running in batch mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With