24
15
Short form: I want to run the Mac OSX version of Emacs found on http://emacsformacosx.com/ as a daemon, with graphical and text clients connecting to it as-needed.
In detail, here is the workflow I want:
On login, run
/Applications/Emacs.app/Contents/MacOS/Emacs --daemon
to start emacs as a daemon. I already know how to do this.When running emacs from a local termnal, I want Either one of these:
- If I run
emacs
from a local command prompt, open a new frame with the selected file. - If #1 is not possible, at least if I run
emacsclient
from the command line, open a new frame with the selected file.
- If I run
When running emacs from a remote terminal, I would like a text-mode emacs to start, connected to the daemon process.
If I run
Emacs.app
re-use the emacs daemon that is running in the background instead of starting a new instance and open a new window on it.
So far, I am able to accomplish only #1 and #2.2 above, but those are the easy parts. #3 and #4 are the things that are most needed in order to make this work. Does anyone know how to accomplish these things?
1For others who find this question: you can also usr
M-x server-start
to put an emacs started without--daemon
into server mode. Good questions, BTW. – dmckee --- ex-moderator kitten – 2009-10-02T17:47:31.3531... or put
(server-start)
in your .emacs so that it starts when you launch emacsa – Doug Harris – 2009-10-03T12:24:09.127Can someone explain how to do # 1? Would you just make it a login item? – Charlie Flowers – 2012-09-21T05:35:55.670
1
@Charlie Flowers http://www.emacswiki.org/emacs/EmacsAsDaemon#toc5
– Colin – 2014-06-09T00:32:38.243