How to paste to Emacs from clipboard on OSX?

后端 未结 7 1753
谎友^
谎友^ 2021-01-31 02:52

This might be extraordinarily simple, but I am playing with Emacs (22.1.1) and I can\'t get it to paste text in the clipboard using Control-Y.

7条回答
  •  礼貌的吻别
    2021-01-31 03:27

    On Windows? I have M-ins bound to h-insert-x-selection, which I have defined as follows:

    (defun h-insert-x-selection () (interactive)
      (insert (x-selection 'CLIPBOARD))) 
    (global-set-key [(meta insert)] 'h-insert-x-selection)
    

    On XEmacs it is different, where I have

    (global-set-key  [(shift insert)] 'x-insert-selection)
    

提交回复
热议问题