emacsclient: create a frame if a frame does not exist
Posted
by
Idlecool
on Super User
See other posts from Super User
or by Idlecool
Published on 2011-11-16T11:31:47Z
Indexed on
2011/11/17
1:54 UTC
Read the original article
Hit count: 269
emacs
|emacsclient
I start emacs server using
emacs --daemon
then open files using
emacsclient filename.ext
but the first file has to be opened using
emacsclient -c filename.ext
in order to create a new frame which can be later used by subsequent files without using -c
command line flag for emacsclient.
I want to automate this. "if there is no emacs frame, emacsclient should create a frame else it should use the current frame". How can it be done?
© Super User or respective owner