终端emacs在前台运行子进程

时间:2016-04-04 09:41:33

标签: emacs terminal

我在终端emacs内。

我想在前台运行游侠。

但是,以下代码不起作用:

(call-process" / usr / bin / ranger")

注意,我不希望emacs模拟游侠的pty(例如,ansi-term)。我希望游侠在我的真实pty中运行,即我的emacs所在的那个。

1 个答案:

答案 0 :(得分:1)

I'm not sure if what you want is possible. Normally you'd do M-x suspend-frame, which will drop you to the shell, run whatever program, and then fg to bring back Emacs. You might be able to do this with something like tmux or screen, but I'm not very familiar with them.