From baf6848e3c4f3ea517879a42bbaa4648b4e23316 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sat, 28 Apr 2018 19:19:04 +0200 Subject: Emacs: add gui-get-primary-selection key binding --- dot.emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dot.emacs.d') diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 61a1c55..3596517 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -77,3 +77,6 @@ (setq column-number-mode t) (global-set-key (kbd "C-x C-k") 'kill-this-buffer) +(global-set-key (kbd "C-M-y") '(lambda () + (interactive) + (save-excursion (insert (gui-get-primary-selection))))) -- cgit v1.2.3