Imagine I have an input file,an output file and a file containing some elisp code, which should transform the input file into the output file. Is there a way I could do all this from an external process? Maybe some kind of script mode for emacs? I would like to embed this in a web application.
Asked
Active
Viewed 96 times
2 Answers
3
See emacs --batch
in the Initial Options section of the manual. Use it with -l
, 'f' or
--eval. The
batchoption forces
prin1,
princ, and
printto print to stdout and
messageand
error` to print to stderr - so you can actually read and write to pipes.

Trey Jackson
- 73,529
- 11
- 197
- 229