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: Emanuel Berg
Subject: Re: Copy variable to system clipboard (as simpleclip)
Date: Tue, 08 Aug 2017 02:23:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

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

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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