I have been using OS X forever. I have been using Emacs forever. I currently use the MacPorts Emacs.app and do (server-start)
in my .emacs
file. I can't get emacsclient
going:
> which emacsclient
/opt/local/bin/emacsclient
> emacsclient ~/.emacs
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: No socket or alternate editor. Please use:
--socket-name
--server-file (or environment variable EMACS_SERVER_FILE)
--altstrong texternate-editor (or environment variable ALTERNATE_EDITOR)
Suggestions?
emacsclient --version
and compare that to the version of yourEmacs.app
.emacsclient -ca ""
The 'c' option tells emacs to open a new frame. The 'a' option, when passed the empty string, will cause an instance of the daemon to be started if one is not already running.