Emacs

From Traxel Wiki
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>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)