From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy variable to system clipboard (as simpleclip)
Date: Tue, 08 Aug 2017 02:23:55 +0200 [thread overview]
Message-ID: <864ltiuctg.fsf@zoho.com> (raw)
In-Reply-To: 20170807231147.GA3447@mail.akwebsoft.com
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
next prev parent reply other threads:[~2017-08-08 0:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 23:11 Copy variable to system clipboard (as simpleclip) Tim Johnson
2017-08-08 0:23 ` Emanuel Berg [this message]
2017-08-08 0:58 ` Tim Johnson
2017-08-08 1:15 ` Tim Johnson
2017-08-08 18:09 ` Emanuel Berg
2017-08-08 23:49 ` Tim Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864ltiuctg.fsf@zoho.com \
--to=moasen@zoho.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.