[emac] 终端机下Emacs无法与其他程式共用剪贴簿

楼主: kuan (kuan_hiroshi)   2012-09-16 09:41:22
平台是Linux Mint13+KDE4.8+Emacs23.3.1 (有安装xclip)
终端机下的emacs (emacs -nw)不知怎的无法让kill-ring与其他程式共用...(GUI版无此问
题)
像是C-a C-k后,没办法贴到其他程式中。
目前已经试过下面几种方法,但很奇怪的都无效...:
1.直接在.emacs加入下面这行:
(setq x-select-enable-clipboard t)
2.同上但再多加一行:
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
3.安装xclip.el (http://www.emacswiki.org/emacs-de/download/xclip.el)
(require 'xclip) ;;还是说其实不用加这行...?
4.也是xclip.el,但内容不太一样... (http://elpa.gnu.org/packages/xclip-1.0.el)
(require 'xclip)
(xclip-mode 1)
5. 利用xsel (http://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/)
但装了这个.el后Emacs启动会吐错误讯息...
6.这个我看不懂但总之加到.emacs后还是无效...(https://plus.google.com/110954683162859211810/posts/42d65NUTMNf)
我已经无计可施了...orz
请问各位这该如何解决?感谢!

Links booklink

Contact Us: admin [ a t ] ucptt.com