I know that on emacs I can install the
xclip package in order to be able to copy text to the system clipboard... With the
xclip package installed and adding the following to my
.emacs file, I can copy the text inside emacs and paste it into another program.
So far everything is fine. However, on spacemacs I'm struggling to make it work... I know I need to edit the
.spacemacs file in order to make it work. But if I install the
xclip package and change my
user-config function to the following:
(defun dotspacemacs/user-config () "Configuration for user code: This function is called at the very end of Spacemacs startup, after layer configuration. Put your configuration code here, except for variables that should be set before packages are loaded." (xclip-mode 1) )
It doesn't work, if I try to copy text with
yy (vim keybindings) it won't get to the system clipboard. What am I missing? What do I need to do in order to use
xclip correctly on spacemacs?