-# bind C-y run "tmux save-buffer - | xclip -i"
-bind C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b"
+# bind C-y run-shell "tmux save-buffer - | xclip -i"
+bind -t emacs-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b"
+bind -t vi-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b"