我正在尝试在守护进程模式下使用 emacs (23.2.1)。我是这样开始的emacs --daemon
,效果很好。但是每当我尝试时,emacsclient -t somefile
我首先得到一行垃圾(例如,'1;25C2;'),然后显示该文件(使用 emacs 的模式行),但我无能为力。它挂了;光标移动键不起作用;Cx# 不起作用;我唯一能做的就是打开另一个控制台并终止该进程。
如果我在配置中正常启动 emacs(通过单击面板上的启动器,或者只是运行emacs
)(server-start)
,则emacsclient file
工作正常(即,在图形 emacs 实例中加载文件)。如果我正常启动 emacs 但使用emacsclient -t file
,我会遇到同样的问题。
我使用的是 Debian 6/Xfce,内核 2.6.32-5-686。$TERM
是 xterm,也许需要更改为其他内容?还有什么可能是罪魁祸首吗?我不想在这里发布我的整个 emacs 配置,因为它很广泛,但如果你真的想浏览它,它在 github 上。
谢谢
看着man emacsclient
,我发现它与和-t
相同,并且它们都这样做:。如果你只是删除,或者用它替换它应该可以。我 的,我的设置为“emacsclient”,它对我有用。(Ubuntu 11.10、Gnu Emacs 23.2.1)-nw
--tty
open a new Emacs frame on the current terminal
-t
-c, --create-frame
create a new frame instead of trying to use the current Emacs frame
(server-start)
'emacs
$EDITOR
归档时间: |
|
查看次数: |
1181 次 |
最近记录: |