2

To enable copy and paste between X11 and emacs in terminal, I installed xclip via M-x package-install. There is xclip-1.4 in ~/.emacs.d/ with the following files:

xclip-autoloads.el  xclip.el  xclip.elc  xclip-pkg.el  xclip-pkg.elc

I also checked the variable load-path which has "~/.emacs.d/elpa/xclip-1.4/".

But when I type M-x xclip-mode I constantly get Searching for program: xclip, no such file. Writing (xclip-mode 1) to ~/.emacs comes to the same result. Can anyone help me debug this?

  • Do you have xclip installed? What does (executable-find "xclip") return? – DoMiNeLa10 Oct 11 '18 at 7:07
  • @DoMiNeLa10 Thanks! Learned another command. – purplezzh Oct 11 '18 at 7:27
1

The xclip Emacs package depends on the xclip command-line application: https://github.com/astrand/xclip. The xclip application is usually provided by Linux distributions so you should look at your package manager first.

If you can't make xclip work or want to try something different, may I suggest my own Emacs package? https://gitlab.petton.fr/DamienCassou/gpastel. This one requires GPaste to be installed on the system (your package manager probably has it too).

  • Thanks! It was my misunderstanding. It works well now :) – purplezzh Oct 11 '18 at 7:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.