From 4eacdbc82d5d3c086df87727da87c3f1070f0bed Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Thu, 10 May 2018 15:47:10 +0300 Subject: anywhere-mode.el: Use XCLIP_BIN. * anywhere-mode.el (anywhere-command): Use '@XCLIP_BIN@'. * guix.scm (emacs-anywhere-mode)[arguments]: Use this. [inputs]: Add 'xclip'. --- anywhere-mode.el | 2 +- guix.scm | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/anywhere-mode.el b/anywhere-mode.el index e023c10..21da3d5 100644 --- a/anywhere-mode.el +++ b/anywhere-mode.el @@ -51,7 +51,7 @@ (defvar anywhere-command (mapconcat 'identity - (list (executable-find "xclip") + (list "@XCLIP_BIN@" "-selection" "clipboard" "&>" "/dev/null") " ")) diff --git a/guix.scm b/guix.scm index 46b9dba..fb27ced 100644 --- a/guix.scm +++ b/guix.scm @@ -67,14 +67,17 @@ newspace." (add-after 'unpack 'patch-paths (lambda _ (substitute* "emacs-anywhere" - (("@XDOTOOL_BIN@") (which "xdotool"))))) + (("@XDOTOOL_BIN@") (which "xdotool"))) + (substitute* "anywhere-mode.el" + (("@XCLIP_BIN@") (which "xclip"))))) (add-before 'install 'install-shell-script (lambda* (#:key outputs #:allow-other-keys) (install-file "emacs-anywhere" (string-append (assoc-ref outputs "out") "/bin"))))))) (inputs - `(("xdotool" ,xdotool))) + `(("xdotool" ,xdotool) + ("xclip" ,xclip))) (synopsis "Emacs Anywhere mode") (description "This package provides an Emacs minor-mode for capturing user input and paste it with @kbd{C-v} after exit.") -- cgit v1.3