开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜