how to make emacs open all buffers in one window (

2019-08-18 20:20发布

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.

1条回答
迷人小祖宗
2楼-- · 2019-08-18 20:30

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.

查看更多
登录 后发表回答