Emacs和Long Shell命令 [英] Emacs and Long Shell Commands
问题描述
我想做的是写小elisp函数来做例如运行单元测试等,并将输出流滴入缓冲区。
elisp函数shell命令靠近我想要的,但显示所有输出
As doublep ,那里有 Mx编译,还有一个简单的 Mx shell ,并且在那个shell里你可以运行任何你想要的。 >
Is there a way to run a shell command, have the output show up in a new buffer and have that output show up incrementally? Eshell and other emacs terminal emulators do a find job of this but I see no way to script them.
What I'd like to do is write little elisp functions to do stuff like run unit tests, etc. and watch the output trickle into a buffer.
The elisp function shell-command is close to what I want but it shows all the output at once when the process finishes.
As doublep mentioned, there is M-x compile, and there's also just the simple M-x shell and in that shell you run whatever you want.
这篇关于Emacs和Long Shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!