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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.