简体   繁体   English

如何从终端作为Mac上的非锁定窗口运行Emacs?

[英]How to run Emacs from terminal as nonlocking window on Mac?

I taped 'emacs' in the terminal on Mac (High Sierra) and pressed return. 我在Mac(High Sierra)的终端上贴了“ emacs”,然后按回车键。 As a result, I have a new Emacs window. 结果,我有了一个新的Emacs窗口。 Everything okay, but I can't continue to use terminal because it looks like locked by this emacs window. 一切正常,但是我无法继续使用终端,因为它似乎已被此emacs窗口锁定。

How can I use terminal and Emacs in parallel independently? 如何独立地并行使用终端和Emacs?

Do you want to start emacs from the terminal or run emacs within the terminal? 您要从终端启动emacs还是在终端中运行emacs? The two are very different. 两者有很大的不同。 To start emacs from the terminal, the conventional wisdom is to use emacsclient to send a GUI emacs instructions to open a given file. 要从终端启动emacs,常规做法是使用emacsclient发送GUI emacs指令来打开给定文件。

If you want to run emacs within a terminal while maintaining access to your terminal, you have a few options: 如果要在终端中运行emacs并同时保持对终端的访问权限,则可以选择以下几种方法:

  • Use a multiplexer like tmux 使用tmux多路复用器
  • Run a terminal emulator within emacs (I like plain ole' Mx term , but there are fancier ones) 在emacs中运行一个终端仿真器(我喜欢普通OLE的Mx term ,但有更好的选择)

If you're just talking about throwing the process into the background, use Cz (ie, Mx suspend-frame ) from a running emacs. 如果您只是想将进程放到后台,请从正在运行的emacs中使用Cz (即Mx suspend-frame )。 If you want to start emacs in the background, do it like any other job using & . 如果要在后台启动 emacs,请像使用&一样执行其他操作。 I'll refer you to your shell's documentation for job management. 我将引导您参考Shell的文档进行作业管理。 ( Here's one for Bash. ) 这是Bash的一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM