use emacsclient.
set emacsclient executalbe for cocoa emacs.
misc.