Ubuntu 退出emacs的时候saving to x clipboard manager要卡很久怎么办?
如图,从emacs外复制到emacs中粘贴,然后在emacs中执行kill yank动作之后,退出emacs卡这个地方要卡很久.有时候系统都卡死了. 你们怎么解决的?里面提到
Many X desktop environments support a feature called the clipboard manager. If you exit Emacs while it is the current “owner” of the clipboard data, and there is a clipboard manager running, Emacs transfers the clipboard data to the clipboard manager so that it is not lost. In some circumstances, this may cause a delay when exiting Emacs; if you wish to prevent Emacs from transferring data to the clipboard manager, change the variable x-select-enable-clipboard-manager to nil.
大概意思时emacs退出时保存数据到桌面的剪切板管理器,某些情况下会导致卡顿。解决方法就是在init.el文件中增加如下代码
(setq x-select-enable-clipboard-manager nil)