]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
use primary selection on unix machines
[lib.git] / emacs_el / configuration / don-configuration.org
index 50fbec086a22ac157e96757f6998f540e5a2af23..5778d4ef367ee2d4f127e2849ec0f660fd147a3f 100644 (file)
@@ -1755,7 +1755,7 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
     (interactive)
     (save-excursion
       (org-back-to-heading 'invisible-ok)
-      (hide-other)
+      (outline-hide-other)
       (org-cycle)
       (org-cycle)
       (org-cycle)))
@@ -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)