1

Say I have emacs open on one screen and on another I'm working in terminal.

I see a file I want to open in emacs. Is there a quick way I could do something like emacs myfile and have a new frame, but same emacs instance pop up?

Or maybe this is the default behaviour(?), since it's hard to distinguish between a new frame and a second instance of emacs.

1
  • 3
    Yes, you would need to start emacs as a server or run emacsclient binary instead of emacs and do server-start in that. Ref Jun 12, 2017 at 12:51

1 Answer 1

3

emacs --daemon starts an emacs server this needs to be done only once (for every computer start of course).

You can then connect to this server with the program emacsclient.
All files you open from command line with emacsclient -c FILENAME run with the server instance.

If you run emacs FILENAME you start a new emacs process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.