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

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

Re: copying text into a paste buffer as you type?


From: Kevin Rodgers
Subject: Re: copying text into a paste buffer as you type?
Date: Mon, 20 Dec 2010 00:09:32 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 12/16/10 9:49 AM, Drew Adams wrote:
is there a way to get emacs to copy text into a paste buffer as you
type? for example, I would like to type 'null =>  false' once
and be able to paste into the other lines

    t.string :title, null =>  false
    t.string :name, null =>  false
    t.text :post, null =>  false

Yes, but you have to tell it when to start and stop copying.

  C-SPC  n u l l  =>   f a l s e  C-x C-x  C-x C-x  M-w

  Start:
   `C-SPC'    Mark selection beginning.
  Type text.
  Stop:
   `C-x C-x'  Activate selection, swapping mark and point.
   `C-x C-x'  Swap mark and point back again.
   `M-x'      Copy selection to kill-ring (paste buffer).

Then `C-y' to yank (paste) it.

C-SPC and M-w are keyboard commands pertaining to the region, not the selection.

So the 2 C-x C-x commands are not needed.

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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