[英]how to make emacs open all buffers in one window (debian/linux/gnome)
In osx I make all new emacs buffers open in the same window/frame by putting this in .emacs. 在osx中,我将所有新的emacs缓冲区放在.emacs中,以在同一窗口/框架中打开它们。
(setq ns-pop-up-frames nil) (setq ns-pop-up-frames nil)
Alias to make emacs open a file in a new buffer (NOT frame) and be activated/come to front? 使emacs在新缓冲区(NOT帧)中打开文件并被激活/显示在前面的别名?
I want to be able to do the same in debian (gnome). 我希望能够在debian(gnome)中做同样的事情。 Is it possible?
可能吗? A solution that will also work for xmonad (and similar wms) would be very much appreciated.
非常适用于xmonad(和类似wms)的解决方案。
pop-up-frames
is a standard emacs variable: pop-up-frames
是一个标准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.
Use customize
or put this 使用
customize
或放置
(custom-set-variables '(pop-up-frames nil))
into your .emacs
. 到您的
.emacs
。
This, of course, only affects Emacs displaying buffers. 当然,这只会影响Emacs的显示缓冲区。 If you start a new Emacs, the new process will create a new window.
如果启动新的Emacs,则新过程将创建一个新窗口。 To achieve what you, apparently, want, you will need to run Emacs as a daemon and open files using
emacsclient
. 要实现您显然想要的功能,您将需要将Emacs作为守护程序运行,并使用
emacsclient
打开文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.