From a519dc191d2c1aca3b68159f52bd5c5604f9f5c9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 8 Nov 2016 16:57:49 +0100 Subject: Emacs: Save system clipboard in kill ring --- tag-emacs/emacs.d/init.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 2586704..5a8445c 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -2089,11 +2089,12 @@ The most important one for me is JSON property alignment. I like to use the clipboard more than the primary selection in X11. #+BEGIN_SRC emacs-lisp - (setq x-select-enable-clipboard t) + (setq x-select-enable-clipboard t + save-interprogram-paste-before-kill t) (if (functionp 'x-cut-buffer-or-selection-value) - (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)) + (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)) (when (boundp 'x-select-request-type) - (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))) + (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))) #+END_SRC ** Selection -- cgit 1.4.1