如何使emacs在一个窗口中打开所有缓冲区(debian/linux/gnome)
在osx中,我将所有新的emacs缓冲区放在.emacs中,在同一个窗口/帧中打开 (setq ns弹出框无)如何使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'
我希望在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
打开文件,请参见编辑