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.

  • 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 – Kaushal Modi Jun 12 '17 at 12:51
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, privacy policy and cookie policy

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