help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Copy Paste in no-x11 mode (emacs -nw)


From: Jonathan Groll
Subject: Re: Copy Paste in no-x11 mode (emacs -nw)
Date: Fri, 26 Sep 2008 14:04:51 +0200
User-agent: Mutt/1.5.13 (Linux mail 2.6.18.8-linode10 i686)

On Fri, Sep 26, 2008 at 11:02:09AM +0200, Thierry Volpiatto wrote:
If you use screen, you can copy from there just like in emacs:
Assume screen prefix key is C-p: (default is C-a)

C-p [ ==> SPC ==> C-f or/and C-n ==> >
Now you have a copy of the text in a file named ~/.screen_exchange
to set it, write in your .screenrc:
,----
| bufferfile            $HOME/.screen_exchange
`----

Note: i think the default if you set nothing is /tmp/.screen_exchange
but i am not sure.

Now if you define a little function with a global-key like:

,----
| (defun tv-yank-from-screen ()
|   (interactive)
|   (insert-file-contents "~/.screen_exchange"))
| | (global-set-key (kbd "C-c Y") 'tv-yank-from-screen)
`----

you can now yank what you want from your terminal :)


Also I must add since we all use Emacs C-a is an unacceptable screen
prefix key (it is the default). I much prefer the backtick, set using
the following in ~/.screenrc

escape ``

I will definitely add your screen functions to my personal elisp
library. Thanks!

Cheers,
Jonathan




reply via email to

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