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: LanX
Subject: Re: copying text into a paste buffer as you type?
Date: Thu, 16 Dec 2010 03:27:28 -0800 (PST)
User-agent: G2/1.0

Hello Rajinder

On 16 Dez., 11:58, Rajinder Yadav <devguy...@gmail.com> 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

are you sure that's what you really want?

I think what you really want is snippet expansion. Have a look at
yasnippet, maybe starting with a youtube video.

IMHO it should be possible by using embedded elisp to keep the
variable parts of a line expansion into memory, and to use it as
default in the next line.

Another thing that came into my mind is (reimplementing?) bash's
behaviour for "M-." but  "null => false" are multiple words.

Cheers
  rolf


reply via email to

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