all repos — nixfiles @ a519dc191d2c1aca3b68159f52bd5c5604f9f5c9

System and user configuration, managed by nix and home-manager

Emacs: Save system clipboard in kill ring

Alan Pearce
commit

a519dc191d2c1aca3b68159f52bd5c5604f9f5c9

parent

86baba70f31308c3613b289dc4eb18b6f14dbc1a

1 file changed, 4 insertions(+), 3 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -2089,11 +2089,12 @@
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