summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2018-05-10 15:47:10 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2018-05-10 15:49:43 +0300
commit4eacdbc82d5d3c086df87727da87c3f1070f0bed (patch)
tree791f486e5b86aae22c54c05ee2476bfee91434eb
parentanywhere-mode: Require subr-x. (diff)
downloademacs-anywhere-mode-4eacdbc82d5d3c086df87727da87c3f1070f0bed.tar.gz
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'.
-rw-r--r--anywhere-mode.el2
-rw-r--r--guix.scm7
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.")