我正在使用 Aquamacs 并使用M-启动 emacs 服务器x server-start
。我的emacsclient
连接很好。但是,当我启动另一个 ssh 会话(在同一台电脑上)时,它无法找到我的套接字名称/服务器文件。它不在~/.emacs.d/server/server
我期望的地方。
如何找出 emacs 服务器当前使用的服务器文件/套接字名称?
这是我的工作配置:
.emacs
(setq server-socket-dir "~/.emacs.d/server")
(server-start)
em.sh
location="/`whoami`@`hostname`:$(readlink -f $1)"
ssh <YOU@LOCAL-WORKSTATION> emacsclient -n -s '~/.emacs.d/server/server' $location