From cd3b879e7bf8d361465e45cab052543df7f9f004 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 17 Jan 2020 18:52:16 +0000 Subject: Support clipboard/contents This function returns the contents of the clipboard without calling paste. --- configs/shared/.emacs.d/wpc/clipboard.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/shared') diff --git a/configs/shared/.emacs.d/wpc/clipboard.el b/configs/shared/.emacs.d/wpc/clipboard.el index 603afc90af85..8955261cdc73 100644 --- a/configs/shared/.emacs.d/wpc/clipboard.el +++ b/configs/shared/.emacs.d/wpc/clipboard.el @@ -36,6 +36,10 @@ (yank) (message message)) +(defun clipboard/contents () + "Return the contents of the clipboard as a string." + (substring-no-properties (current-kill 0))) + (exwm-input-set-key (kbd "C-M-v") #'ivy-clipmenu/copy) -- cgit 1.4.1