]> git.donarmstrong.com Git - lib.git/commitdiff
use primary selection on unix machines
authorDon Armstrong <don@donarmstrong.com>
Tue, 22 Dec 2020 16:34:50 +0000 (08:34 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 19 Apr 2021 15:22:35 +0000 (08:22 -0700)
emacs_el/configuration/don-configuration.org

index 75ed11e04645029ee2854129502f034af037245e..5778d4ef367ee2d4f127e2849ec0f660fd147a3f 100644 (file)
@@ -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)