Integrate Emacs copy/paste with System copy/paste

后端 未结 5 1784
星月不相逢
星月不相逢 2020-12-24 13:18

I have (cua-mode t) in my .emacs, so that C-c is copy and C-v is paste just like most other programs on my desktop (Ubuntu, Gnome, Linux). However, Emacs does not seem to sh

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 13:40

    I had the same problem. I added this to my .emacs file:

    (setq x-select-enable-clipboard t)
    (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
    

    Now Ctrl-C and Ctrl-v between Emacs and other applications work fine. Source: Ubuntu Forums

提交回复
热议问题