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 20:09:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Tim Johnson wrote:

> Update: Seems to work. I owe you a beer. :)

Owe me a beer? Have you never heard of free
software, with "free" as in free beer?

Anyway I went thru the code today after all
these years, and found a couple of small things
to change:

    http://user.it.uu.se/~embe8573/emacs-init/xsel.el

I also added this:

    (defun x-copy-symbol (sym)
      "Copy the value of SYM to the X clipboard."
      (interactive "S Symbol: ")
      (let*((val (symbol-value sym))
            (str (format "%s" val)) )
        (set-X-clipboard-to-string str) ))
    ;; Test:
    ;; (progn (x-copy-symbol 'fill-column)         (insert-X-clipboard))
    ;; (progn (call-interactively #'x-copy-symbol) (insert-X-clipboard))

Keep it up :)

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




reply via email to

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