I have one file that needs to behave differently depending on whether Emacs is running in batch mode (non interactive) or normal mode.
(if batch-mode-t
a-func
b-func)
How can I detect this?
I have one file that needs to behave differently depending on whether Emacs is running in batch mode (non interactive) or normal mode.
(if batch-mode-t
a-func
b-func)
How can I detect this?
You can look at the variable noninteractive
, for example:
(if noninteractive
a
b)