【发布时间】:2014-08-13 21:48:28
【问题描述】:
我想让emacsclient 从命令行连接到给定的 Emacs 服务器。阅读手册Using Emacs as a Server 我想我可以这样做:
emacs --eval '(server-start)' --eval "(set-variable 'server-name \"foo\")" --no-splash fileA &
然后:
emacsclient -s "foo" -n fileB
但这给出了错误:
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: error accessing socket "foo"
但是,我可以做到:
emacsclient -e '(prin1 server-name)'
给了
"foo"
【问题讨论】:
标签: emacs elisp emacsclient