【问题标题】:how to make emacs open all buffers in one window (debian/linux/gnome)如何使emacs在一个窗口中打开所有缓冲区(debian/linux/gnome)
【发布时间】:2013-02-23 00:06:25
【问题描述】:

在 osx 中,我通过将其放入 .emacs 中,使所有新的 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?

我希望能够在 debian (gnome) 中做同样的事情。可能吗?非常感谢一个也适用于 xmonad(和类似的 wms)的解决方案。

【问题讨论】:

    标签: linux emacs debian


    【解决方案1】:

    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.
    

    使用customize 或输入这个

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

    到你的.emacs

    当然,这只会影响 Emacs 显示缓冲区。 如果您启动一个新的 Emacs,新进程将创建一个新窗口。 显然,要实现您想要的,您需要run Emacs as a daemon 并使用emacsclient 打开文件。

    【讨论】:

    • 由于某种原因,这对我不起作用,你测试过吗?
    • 我将这行文本放在我的 .emacs 中(确实保存了它),并且据我在自定义菜单中看到的更改似乎已经注册(我不熟悉它)。我重新启动了emacs和计算机。不过,当我打开 txtFile1 和 txtFile2 时,它们会出现在不同的窗口中。
    • 您需要将emacs 作为守护进程运行并使用emacsclient 打开文件,查看编辑
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-08
    • 1970-01-01
    • 2012-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多