如何使 emacsclient 在同一“框架”内的单独“窗口”中打开每个文件

Ajo*_*joy 7 emacs emacsclient

我正在尝试从终端在emacsclient中打开两个文件,例如“hello.txt”和“world.txt”,我希望它们在两个不同的窗口中打开(就像 emacs 意义上的单词一样),但在相同的窗口中打开框架

我像这样调用emacsclient :

emacsclient -nw hello.txt world.txt
Run Code Online (Sandbox Code Playgroud)

目前发生的情况是,单个emacsclient框架显示一个窗口,其中显示 hello.txt。另一个文件被打开到不可见的缓冲区中。

如果我使用emacs而不是emacsclient,我会得到预期的结果(即在同一框架内但在两个窗口中打开两个文件)。如何使 emacsclient 的行为与 emacs 相同?

我并不是在寻求使emacsclient生成多个框架的方法,而是在寻求某种方法使emacsclient在同一框架内的拆分窗口中打开多个文件。

小智 0

emacs 24.3.1 手册的第 37.1 节“调用 `emacsclient'” 说:

您还可以强制使用emacsclient' to open a new frame on a graphical display, or on a text terminal, using the-c' 和 '-t' 选项。