aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-05-08 19:48:14 +0800
committerAaron LI <aaronly.me@gmail.com>2016-05-08 19:48:14 +0800
commit13264ef4a28a6b205427188e30147ef2c6c376c2 (patch)
tree71f2d69ba10fcf15995a81cd5dedf5ec69741911
parentb924b536987b3b36c94a50f887d3ba63e124a325 (diff)
downloaddotfiles-13264ef4a28a6b205427188e30147ef2c6c376c2.tar.bz2
_spaces: prevent emacs from polluting system clipboard
-rw-r--r--_spacemacs8
1 files changed, 7 insertions, 1 deletions
diff --git a/_spacemacs b/_spacemacs
index cc3762f..9da7570 100644
--- a/_spacemacs
+++ b/_spacemacs
@@ -3,7 +3,7 @@
;;
;; Aaron LI
;; Created: 2016-04-30
-;; Updated: 2016-05-04
+;; Updated: 2016-05-08
;;
@@ -294,6 +294,12 @@ layers configuration. You are free to put any user code."
(global-vi-tilde-fringe-mode)
;; Put a newline at the end of file if there isn't already one there
(setq-default require-final-newline t)
+ ;; Prevent the visual selection overriding the system clipboard
+ (fset 'evil-visual-update-x-selection 'ignore)
+ ;; Prevent transferring data to clipboard manager when exiting
+ (setq x-select-enable-clipboard-manager nil)
+ ;; Aggressively prevent `kill' and `yank' from accessing the clipboard
+ (setq x-select-enable-clipboard nil)
)
;; Do not write anything past this comment. This is where Emacs will