Emacs
Revision as of 16:20, 28 August 2023 by RobertBushman (talk | contribs) (Created page with "Category:Hacking = Yank from Primary Selection = In Linux, the "highlight" buffer is called the Primary Selection. <syntaxhighlight lang="lisp"> (defun yank-primary-selection () (interactive) (insert (x-get-selection 'PRIMARY))) (global-set-key (kbd "M-y") 'yank-primary-selection) </syntaxhighlight>")
Yank from Primary Selection
In Linux, the "highlight" buffer is called the Primary Selection.
(defun yank-primary-selection ()
(interactive)
(insert (x-get-selection 'PRIMARY)))
(global-set-key (kbd "M-y") 'yank-primary-selection)