How to set up clipboard?

While on a brink of sanity I’m wondering how clipboard should work in doom emacs. You can’t put EVERY word into clipboard that gets deleted…

But putting this (setq x-select-enable-clipboard nil) makes X11 clipboard not work at all…

My current solution is to disable clipboard/kill-ring transfers AND bind Ctrl+Shift+C and Ctrl+Shift+v to copy/paste selected blocks to X11 clipboard.

;; don't put deleted strings to X11 clipboard
(setq select-enable-clipboard nil)

;; copying and pasting selected blocks in visual mode to and from X11 clipboard
(map! "S-C-c" #'clipboard-kill-ring-save)
(map! "S-C-v" #'clipboard-yank)

Could this be considered a sane default?

1 Like