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.
Share
See
emacs --batchin the Initial Options section of the manual. Use it with-l,'f' or–eval. Thebatchoption forcesprin1,princ, andprintto print to stdout andmessageanderror` to print to stderr – so you can actually read and write to pipes.