From 9123973189ebc81a0c4e51f0ff943a76b34f79dc Mon Sep 17 00:00:00 2001 From: 10sr Date: Tue, 13 Dec 2011 20:48:31 +0900 Subject: [PATCH] xclip.el seems to work fine --- .emacs.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.emacs.el b/.emacs.el index 49ae664..cfac5da 100644 --- a/.emacs.el +++ b/.emacs.el @@ -580,16 +580,17 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; share clipboard with x (when (or window-system - (getenv "DESKTOP_SESSION")) - (setq x-select-enable-clipboard t)) + (ignore 'getenv "DESKTOP_SESSION")) + (setq x-select-enable-clipboard t + x-select-enable-primary nil)) ;; urlに細かい説明あり。でも設定は上記だけでよさそう ;; http://garin.jp/doc/Linux/xwindow_clipboard -(and x-select-enable-clipboard +(and (not x-select-enable-clipboard) (executable-find "xclip") (dllib-if-unfound "xclip" "http://www.emacswiki.org/emacs/download/xclip.el" t) - nil (require 'xclip nil t) ;; strange behavior: clipboard change unexpecdtedly; after copy on emacs, when copying on firefox soon clipboard content change back + (require 'xclip nil t) ;; strange behavior: clipboard change unexpecdtedly; after copy on emacs, when copying on firefox soon clipboard content change back (turn-on-xclip)) ;; その他のhook