感谢所有为您的建议和回应 - 我想我的解决办法是添加以下到我的.bash_profile:
## --- emacs ---
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
## --- emacs client ---
## adapted from http://philipweaver.blogspot.com/2009/08/emacs-23.html
# start a windowed frame
alias ec="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -c -a /Applications/Emacs.app/Contents/MacOS/Emacs"
# start a terminal frame
alias em="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -a /Applications/Emacs.app/Contents/MacOS/Emacs -nw"
# do not start a new frame
alias ea="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -a /Applications/Emacs.app/Contents/MacOS/Emacs"
我试着使用emacs --daemon和Emacs的客户更换Emacs.app。应用程序图标,通过
http://www.cubiclemuses.com/cm/articles/2009/07/30/emacs-23-for-os-x/
,但(1)守护进程似乎并不加载许多我的.emacs定制和(2)当我将退出Emacs的客户端也将完全退出Emacs和产生错误的建议。 ..
所以我的解决方案是使用上面定义的bash别名;将(server-start)行添加到我的.emacs文件中,并将Emacs.app图标添加到我的OS X扩展坞,以便我可以使用图标或其中一个别名来启动emacs,并打开新文件在运行的实例中,我也可以在Emacs中使用上面的别名或Cx Cf(或Cx b)。
当您使用“emacs -Q”启动主emacs,然后在那里执行(服务器启动),然后运行“emacsclient -nw”时会发生什么? – Yoo 2009-08-12 10:20:08
感谢您的回应! ...但同样的事情,emacsclient -nw somefile在emacs -Q创建的相同框架中打开某个文件... – hatmatrix 2009-08-12 10:34:10
您可能会在此邮件列表中获得一个答案[email protected],或者也许是从Emacs提交错误'Mx report-emacs-bug'。 – 2009-08-13 16:11:42