From 13264ef4a28a6b205427188e30147ef2c6c376c2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 8 May 2016 19:48:14 +0800 Subject: _spaces: prevent emacs from polluting system clipboard --- _spacemacs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '_spacemacs') 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 -- cgit v1.2.2