summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.")