I have Ubuntu 12.04 running with Emacs 24.3.
On computer startup, emacs --daemon
is executed, and I have modified the emacs24.desktop
to take emacsclient -c -a ""
as exec parameter. However, whenever I try to open a file a new frame opens every time.
Is there a way to make the file appear in a preexisting frame as a new buffer?
By “open a file” I mean using either GUI file manager or using terminal by emacsclient -nc [filename]
or emacsclient -nc -a "" [file]
.
EDIT: What seems to be happening is that emacs is opening a new "OS window" (as in Emacs frame) with every file; however, I am able to access all the buffers in the same emacs frame. Still, having multiple emacs frames in irritating even though I don't have to switch through them. Closing the frame manually removes the buffer too.
Is there a way to suppress the behavior of opening the new frame every time?
emacsclient -help
.-n
is forno-wait
while-c
was to create new frame (I didn't realized it created new frame every time). Without-c
,emacsclient
starts emacs in the-nw
mode for some reason.