title: How to stop Spacemacs from overriding the clipboard and enabling pasting on search at the same time?
body: <p>I often do the following things:</p>
  
  <ol>
  <li>Copy text outside emacs</li>
  <li>Switch back to emacs, delete some text</li>
  <li>Paste</li>
  </ol>
  
  <p>The problem is that I get back the deleted text since it overwrites the clipboard. To solve this problem, I added the following code in <code>~/.spacemacs</code></p>
  
  <pre class="lang-lisp prettyprint-override"><code>(defun dotspacemacs/user-config ()
    (setq x-select-enable-clipboard nil)
    (define-key evil-visual-state-map (kbd "s-c") (kbd "\"+y"))
    (define-key evil-insert-state-map  (kbd "s-v") (kbd "^R+"))
    (define-key evil-ex-completion-map (kbd "s-v") (kbd "^R+"))
    (define-key evil-ex-search-keymap  (kbd "s-v") (kbd "^R+")))
  </code></pre>
  
  <p>Now the problem has gone, but I encountered a new problem because of those lines: I cannot paste text from the clipboard when pressing <code>C-s RET</code> to search for words. When I press <code>Cmd + V</code>(I use macOS) after pressing <code>C-s RET</code>, I got text copied from Emacs instead of from the clipboard. How to solve that?</p>