如何使emacs在一个窗口中打开所有缓冲区(debian / linux / gnome) [英] how to make emacs open all buffers in one window (debian/linux/gnome)

查看:249
本文介绍了如何使emacs在一个窗口中打开所有缓冲区(debian / linux / gnome)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



(setq ns-pop-up-frames nil)在osx中​​,我将所有新的emacs缓冲区打开在同一个窗口/框架中。 )



别名使emacs在新缓冲区(NOT框架)中打开一个文件,并被激活/来到前面?



我想在debian(gnome)中做同样的事情。可能吗?也将为xmonad(和类似的wms)工作的解决方案将非常感谢。

解决方案

弹出框架是一个标准的emacs变量: / p>

 弹出框架是在window.el中定义的变量。 
它的值为nil

文档:
display-buffer是否应该单独构成一个框架。
如果没有,永远不要做一个单独的框架。
如果值为仅图形,则在图形显示器上单独设置一个框架

任何其他非零值意味着总是使一个单独的框架。

您可以自定义此变量。

使用自定义或放这个

 (自定义设置变量'(弹出框架无))

到您的 .emacs



,当然只会影响Emacs显示缓冲区。
如果您启动一个新的Emacs,新进程将创建一个新窗口。
为了实现你显然想要的,你需要运行Emacs作为守护进程并使用 emacsclient 打开文件。


In osx I make all new emacs buffers open in the same window/frame by putting this in .emacs.

(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?

I want to be able to do the same in debian (gnome). Is it possible? A solution that will also work for xmonad (and similar wms) would be very much appreciated.

解决方案

pop-up-frames is a standard emacs variable:

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

(custom-set-variables '(pop-up-frames nil))

into your .emacs.

This, of course, only affects Emacs displaying buffers. If you start a new Emacs, the new process will create a new window. To achieve what you, apparently, want, you will need to run Emacs as a daemon and open files using emacsclient.

这篇关于如何使emacs在一个窗口中打开所有缓冲区(debian / linux / gnome)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆