emacs - 如何在 Emacs 上运行多个 shell

标签 emacs

我在 Windows 7 上使用 Emacs 23.3.1。我知道我可以使用 M-x shell 从 emacs 运行 shell。我想同时拥有多个 shell 窗口,但第二次输入 M-x shell 只会打开同一个 shell 窗口。

有没有办法拥有不同的 shell 窗口?

最佳答案

C-u M-x shell 会做到的。

它将提示输入新 shell 的名称,只需按回车键即可获得默认值(类似于 *shell*<2>

也适用于 eshell。

另一个技巧,如果您使用 eshell:就像 M-x eshell 带您回到 *eshell* (而不是启动一个新的 eshell),如果您使用数字前缀参数,它将带您进入该 eshell 缓冲区。例如,C-3M-xeshell将带您到*eshell*<3> 。遗憾的是,如果您使用 shell(而不是 eshell),这个技巧似乎不起作用(至少在我的 Emacs 24.0.50.1 中是这样。)

关于emacs - 如何在 Emacs 上运行多个 shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6532998/

相关文章:

c++ - emacs C/C++ 缩进 : different for pre and post comments//or: how can I make certain comments like//^ be indented extra?

emacs - 如何在 Centos 7 上使用 gnutls 编译 emacs 26.2?

emacs - 任何可用于浏览数据库(查看模式、运行 sql 查询)的 emacs 包?

emacs - Flycheck - 禁用 Clang 作为检查器*永久*

Emacs,将点 move 到第一个可见字符

Emacs:如何获得默认主题?

haskell - ghc-mod 仅显示 *GHC info* 中的第一行

git - Emacs + GPG + pinentry.el 进行身份验证

Emacs - 相互切换段落

windows - Gnu emacs 窗口标题默认