我使用 Emacs 完成大部分开发工作,我希望能够从家里连接到在我的办公室工作站上运行的 Emacs 服务器。我通过 VPN 连接到我的办公室网络,我认为这基本上是安全的。
不管怎样,我有一个脚本可以复制服务器身份验证文件,但看起来端口每次都会改变。我们的 VPN 已被完全锁定,我需要告诉我们的系统管理员我想向哪些计算机开放哪些端口。
有没有办法设置Emacs服务器监听的端口?
看来这个问题现在已经解决了。我使用的是 Emacs 24.3.1,现在有一个变量server-port
:
C-h v server-port
RET
给出以下文档:
Documentation:
The port number that the server process should listen on.
This variable only takes effect when the Emacs server is using
TCP instead of local sockets. A nil value means to use a random
port number.
You can customize this variable.
This variable was introduced, or its default value was changed, in
version 24.1 of Emacs.
so a (setq server-port 12345)
在你的初始化文件中应该可以解决问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)