help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy variable to system clipboard (as simpleclip)


From: Tim Johnson
Subject: Re: Copy variable to system clipboard (as simpleclip)
Date: Mon, 7 Aug 2017 16:58:21 -0800
User-agent: Mutt/1.7.0 (2016-08-17)

* Emanuel Berg <moasen@zoho.com> [170807 16:36]:
> Tim Johnson wrote:
> 
> > I use simpleclip routinely so that I can copy
> > and paste from the system clipboard without
> > affecting the emacs kill ring. However,
> > I could use a function that would copy any
> > string variable (such as output from
> > buffer-file-name) to the system clipboard.
> >
> > Is such function available?
> 
> Yes, use xsel(1x) as I did here - one of the
> first things I wrote in Elisp by the way -
> could probably benefit from an upgrade, but
> hey, if it ain't broke, fix it, to make sure
> it is!
> 
>     http://user.it.uu.se/~embe8573/emacs-init/xsel.el

  Thanks Emanuel. I just installed xsel and will play with your code
  later (or tomorrow).

  cheers
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]