emacs clipboard cut and paste, done right!

;; ~/.emacs ;;
(global-unset-key [(control v)]) ;;use page-down
(global-set-key   [(control v)]
    'clipboard-yank)
(global-unset-key [(control shift v)]) ;;use page-up
(global-set-key   [(control shift v)]
    'clipboard-yank)
(global-unset-key [(control shift c)])
(global-set-key   [(control shift c)]
    'clipboard-kill-ring-save)
(global-unset-key [(control shift x)])
(global-set-key   [(control shift x)]
    'clipboard-kill-region)

I figured this out after reading HP's essay on useability, where he mentions that “Emacs is basically the last remaining X application that insists on having cut and paste that doesn't work correctly.”

A while back, I vowed to switch from emacs to another editor. Silly me. That could never happen.