From 0c1f334fe4ba5af90491818fd95ff6c00775aeb8 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 6 Dec 2023 14:28:32 +0000 Subject: [PATCH] dot/emacs: Only force primary selection rather than clipboard on X11. It makes working on Windows rather annoying. --- dot/emacs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot/emacs b/dot/emacs index 3c213b9..31f612e 100644 --- a/dot/emacs +++ b/dot/emacs @@ -106,9 +106,10 @@ (require 'paren) (trap (show-paren-mode t)) (or window-system (mdw-emacs-version-p 22) (menu-bar-mode -1)) -(setq x-select-enable-clipboard nil - x-select-enable-primary t - mouse-drag-copy-region t) +(if (eq window-system 'x) + (setq x-select-enable-clipboard nil + x-select-enable-primary t)) +(setq mouse-drag-copy-region t) ;; Multiple cursors. -- 2.11.0