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:Use
customize
or put thisinto 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
.