如何切换分屏 Emacs,其中一个屏幕是编辑器,另一个屏幕是终端模拟器?

发布于 2024-07-20 04:08:01 字数 290 浏览 7 评论 0原文

我已经通过 ssh 连接到远程计算机并启动了 emacs。 我打开一个小的 python 应用程序,然后将屏幕一分为二,另一个是 Mx 终端模拟器。 我想在一个部分编辑脚本,然后按 Cx o 并在另一部分运行它。 不幸的是,我似乎无法从终端仿真器中删除 Cx o,它最终只是输入 x o。

有没有更好更快的方法来完成我想做的事情? 或者是否有按键可以让我切换回编辑器部分?

编辑:我只是尝试执行“Mx shell”,而不是“Mx term”,这允许我使用 Cx o 进行切换。

I have ssh'ed to a remote machine and started emacs. I opened one small python application, and then split the screen into two, and M-x terminal-emulator in the other. I would like to edit the script in one section, then press C-x o and run it on the other section. Unfortunately, I can't seem to C-x o away from the terminal emulator and it just ends up typing x o.

Is there a better quick way of doing what I'm trying to do? Or is there a keystroke that will let me switch back to the editor section?

Edit: I just tried doing 'M-x shell', instead of 'M-x term', and that allows me to use C-x o to switch.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

酷遇一生 2024-07-27 04:08:01

在*终端*窗口中,按 C-^ o 切换到其他窗口,按 C-^ Ch 获取更多帮助。

While at the * terminal* window, C-^ o to switch to other window, and C-^ C-h for more help.

淡墨 2024-07-27 04:08:01

ALT-X 其他窗口

C-TAB 也可以在本地使用。 这会通过 SSH 进行转换吗? 如果没有,请将 other-window 绑定到另一个将通过 SSH 传输的密钥。

ALT-X other-window

C-TAB also works locally. Will that translate over SSH? If not, bind other-window to another key that will go over SSH.

困倦 2024-07-27 04:08:01

我找到了这篇文章,并相应地自定义了 .emacs 文件。
http://nex-3.com/posts/45-efficient -emacs 中的窗口切换

I found this post and I customized the .emacs file accordingly.
http://nex-3.com/posts/45-efficient-window-switching-in-emacs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文