1

In the menu-bar of Emacs-23 under [Edit] there is Cut, Copy, Paste which are all explicit clipboard related commands ; the traditional C-w, M-w, C-y are no longer offered, and these no longer have an effect relevant to X.

What is the cleanest way to make the traditional commands clipboard-aware? It seems there must be some more systematic way than just redefining everything. C-h C-n did not help me.

Is it intended to hide the traditional command from users?

Edit: Or at least: a command to "synchronize" with the clipboard.

false
  • 10,264
  • 13
  • 101
  • 209
  • 1
    I looked at this a while ago and couldn't find anything other than redefining. This was one of the factors in my switch to gVim. – Garry Cairns Feb 01 '13 at 16:55
  • @Garry Cairns: Please have a look at the answer below. – false Feb 01 '13 at 18:46
  • Thanks for the pointer @false, although I'm afraid I'm too ingrained in working with gVim to switch back now. I've truly gone to the dark side. – Garry Cairns Feb 03 '13 at 13:27

1 Answers1

3

X has two "clipboards": the primary selection, and the clipboard. Emacs 23 uses the primary selection by default, but it seems you want the clipboard. You can enable this with the following in your .emacs:

(setq x-select-enable-clipboard t)

This setting changed in Emacs 24 to use the clipboard by default. See also: http://emacswiki.org/emacs/CopyAndPaste

ataylor
  • 64,891
  • 24
  • 161
  • 189