Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使emacs在一个窗口中打开所有缓冲区(debian/linux/gnome)_Linux_Emacs_Debian - Fatal编程技术网

如何使emacs在一个窗口中打开所有缓冲区(debian/linux/gnome)

如何使emacs在一个窗口中打开所有缓冲区(debian/linux/gnome),linux,emacs,debian,Linux,Emacs,Debian,在osx中,我将所有新的emacs缓冲区放在.emacs中,在同一个窗口/帧中打开 (setq ns弹出框无) 我希望在debian(gnome)中也能做到这一点。可能吗?如果有一个同样适用于xmonad(和类似wms)的解决方案,我们将不胜感激 弹出框是标准的emacs变量: pop-up-frames is a variable defined in `window.el'. Its value is nil Documentation: Whether `display-buffer'

在osx中,我将所有新的emacs缓冲区放在.emacs中,在同一个窗口/帧中打开

(setq ns弹出框无)


我希望在debian(gnome)中也能做到这一点。可能吗?如果有一个同样适用于xmonad(和类似wms)的解决方案,我们将不胜感激

弹出框
是标准的emacs变量:

pop-up-frames is a variable defined in `window.el'.
Its value is nil

Documentation:
Whether `display-buffer' should make a separate frame.
If nil, never make a separate frame.
If the value is `graphic-only', make a separate frame
on graphic displays only.
Any other non-nil value means always make a separate frame.

You can customize this variable.
使用
自定义
或将此

(custom-set-variables '(pop-up-frames nil))
进入您的
.emacs

当然,这只影响Emacs显示缓冲区。 如果启动新的Emacs,新进程将创建一个新窗口。
显然,要实现您想要的功能,您需要使用
EmacClient

打开文件。出于某种原因,这对我不起作用,您测试过吗?我将文本行放在了my.emacs(确实保存了它)中,并且更改似乎已经在自定义菜单中注册了(我不熟悉它)。我重新启动了emacs和计算机。但是,当我打开txtFile1和txtFile2时,它们会出现在不同的窗口中。您需要作为守护进程运行
emacs
,并使用
emacsclient
打开文件,请参见编辑