I am using Emacs 24.4 on Windows 10. I only ever use it in -nw
(no-window) mode.
I would like Emacs to paste from the Windows clipboard only on Shift-Insert
and not on yank (Ctrl-y
). I have tried this:
(setq x-select-enable-clipboard nil)
(setq x-select-enable-primary nil)
but this disables pasting from the Windows clipboard on both Shift-Insert
and yank. I want Shift-Insert
to paste only from the Window clipboard and yank to paste only from the Emacs kill ring.
Here is an example of what I want:
- Copy the text
hello
to the Windows clipboard. - Start emacs.
- Do a yank (
Ctrl-y
); desired result: nothing is inserted. - Do a
Shift-Insert
; desired result:hello
is inserted.
Is this possible? If so, how?