From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy variable to system clipboard (as simpleclip)
Date: Mon, 7 Aug 2017 16:58:21 -0800 [thread overview]
Message-ID: <20170808005821.GB3447@mail.akwebsoft.com> (raw)
In-Reply-To: <864ltiuctg.fsf@zoho.com>
* 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
next prev parent reply other threads:[~2017-08-08 0:58 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
2017-08-08 0:58 ` Tim Johnson [this message]
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=20170808005821.GB3447@mail.akwebsoft.com \
--to=tim@akwebsoft.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.