I'm something of an Emacs newbie. I would like to run a shell script I've written and insert the output into the buffer I'm working in. But the script requires some interaction, so ideally I'd like a workflow where I:
- Call a command from the main buffer
- Shell or Term mode opens, I interact with the script, the script gives final output and exits
- Final output is inserted at the point in my main buffer
Is this feasible?
I've read some of the documentation on shell mode, the GNU documentation on running shell commands in Emacs and other material I've been able to find, but I can't find anything that addresses this issue specifically. I may have just missed it, of course.