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

Re: Copying URLs to X-clipboard [PATCH]]



In [emacs-w3m:12818]
On Sun, 19 Nov 2017 22:12:00 -0500, Boruch Baum wrote:
>> (setq select-enable-primary t)

> That doesn't work for me.

Sorry.  I overlooked you're talking about emacs-nox.  How about
this one?

--8<---------------cut here---------------start------------->8---
(defun my-nox-select-text (text)
  "Send TEXT to `xsel -i'."
  (call-process-shell-command (concat "echo '" text "'|xsel -i")))

(or (window-system)
    (setq interprogram-cut-function 'my-nox-select-text))
--8<---------------cut here---------------end--------------->8---

This works for me for any text killed in Emacs -nw.  I feel it
is not a matter only emacs-w3m should support anyway.