summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-06-02 20:21:43 +0100
committerAlan Pearce2013-06-02 20:21:43 +0100
commit089fc46ad23ad12b9be83705b10121750c325f08 (patch)
tree1e7cfb2e0a2a3a77c8b94d889f79d2786cd76379 /emacs
parent6ce4aa99a7ea9a7996b971e38c83a56e4bab82af (diff)
downloadnixfiles-089fc46ad23ad12b9be83705b10121750c325f08.tar.lz
nixfiles-089fc46ad23ad12b9be83705b10121750c325f08.tar.zst
nixfiles-089fc46ad23ad12b9be83705b10121750c325f08.zip
Emacs: Improve X11 clipboard interoperability
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 96d105e5..973b94a2 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -774,6 +774,10 @@ Also returns nil if pid is nil."
 (setq sentence-end-double-space nil
       line-move-visual nil)
 
+(setq x-select-enable-clipboard t)
+(if (functionp 'x-cut-buffer-or-selection-value)
+    (setq interprogram-paste-function 'x-cut-buffer-or-selection-value))
+
 ;; replace highlighted text rather than just inserting at point
 (delete-selection-mode t)