如何保持持久的emacs-server实例运行? [英] How to keep a persistent emacs-server instance running?

查看:155
本文介绍了如何保持持久的emacs-server实例运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用emacs-server,因此我可以将emacsclient设置为默认的texteditor,并将它们作为缓冲区而不是新的emacs实例打开。

I use emacs-server so that I can set emacsclient as the default texteditor and have it open up new files as buffers rather than new emacs instances.

这只有在emacs服务器运行时才有效,所以如何在启动时运行并保留在后台?

However, this only works when emacs server is running, so how can I have this run at startup and stay in the background?

另一个问题是,如果我启动emacs,然后退出它会重新启动它,它告诉我:

Another issue is that if i start emacs, then quit it and restart it, it tells me:

文件错误:无法绑定服务器套接字,地址已在使用

File error: Cannot bind server socket, address already in use

推荐答案

假设你使用Emacs 23,把

Assuming you are using Emacs 23, put

emacs --daemon

你的启动命令)。

这篇关于如何保持持久的emacs-server实例运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆