开发者

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

开发者 https://www.devze.com 2022-12-17 17:24 出处:网络
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.

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

精彩评论

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

关注公众号