开发者

Emacs: How to separate the kill ring from the system clipboard?

开发者 https://www.devze.com 2023-03-24 06:18 出处:网络
By default Emacs 23.x seems to copy content that\'s killed to the kill ring and to the system clipboard. Is it possible to keep the kill ring and clipboard separate?

By default Emacs 23.x seems to copy content that's killed to the kill ring and to the system clipboard. Is it possible to keep the kill ring and clipboard separate?

As in, ctrl+k puts stuff on the kill ring, cmd+x puts stuff on the system clipboard and leaves the kill 开发者_如何学运维ring alone.


That was discussed in this thread:

Setting interprogram-cut-function to nil should do the trick.

if I do a selection the Windows way and do a Ctrl-C or CTRL-Insert, then whatever I selected should be copied to the clipboard.

I think there's no way of doing this out of the box, but you should be able to write a simple command that calls x-select-text, and bind it to whatever keys you want.


Put into your .emacs file:

(setq interprogram-cut-function nil)

0

精彩评论

暂无评论...
验证码 换一张
取 消