From 7be08c5617f5fe052cb318e5ed6ebbd6e17ca84d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 22 Dec 2020 08:34:50 -0800 Subject: [PATCH] use primary selection on unix machines --- emacs_el/configuration/don-configuration.org | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index 75ed11e..5778d4e 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -2564,11 +2564,26 @@ same directory as the org-buffer and insert a link to this file." (show-paren-mode 1) (setq show-paren-delay 0.2) +#+END_SRC +** My Username +#+BEGIN_SRC emacs-lisp (setq user-mail-address "don@donarmstrong.com") +#+END_SRC +** Use primary selection on unix machines +#+BEGIN_SRC emacs-lisp ;; switch back to the old primary selection method - (setq x-select-enable-clipboard nil) - (setq x-select-enable-primary t) + (if (or (string-equal system-type "darwin") + (string-equal system-type "windows") + ) + (progn + (setq x-select-enable-clipboard t) + (setq x-select-enable-primary nil) + ) + (progn + (setq x-select-enable-clipboard nil) + (setq x-select-enable-primary t) + )) ; (setq mouse-drag-copy-region t) (fset 'perl-mode 'cperl-mode) -- 2.39.5