开发者

Emacs server file path

I'm using Aquamacs and started the emacs server with M-x server-start. My emacsclient connects just fine. However, when I start another ssh session (on the same pc) it cannot locate my socket-name / server file. It's not in ~/.emacs.d/server/server where I would expect it.

How can I find out which server-file / socket-name the emacs server is currently using?

This is 开发者_开发问答my working configuration:

.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


The variable server-socket-dir (atleast on GNU Emacs) is what holds the location of the socket. The socket file in my case is simply called server.


It's in $TMPDIR/emacsXXX/server where XXX is a number that depends on the version of Aquamacs you're running


This should also fix your problem without needing to manually delete the file.

M-x server-force-delete
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜