diff options
| -rw-r--r-- | anywhere-mode.el | 2 | ||||
| -rw-r--r-- | 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") " ")) @@ -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.") |
