开发者

Enabling control-c and control-v copy and paste in Emacs

How do I copy & paste in Emacs with ctrl+c and ctrl开发者_如何学编程+v? What must I add to my .emacs file?


Check out the Cua Mode.


Old question, but nevertheless.

Unbind Ctrl+C because it's modifier in Emacs:

(global-set-key (kbd "C-c") 'undefined)

Bind Ctrl+C to Copy:

(global-set-key (kbd "C-c") 'kill-ring-save)

Bind Ctrl+V to Paste:

(global-set-key (kbd "C-v") 'yank)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜