From: LanX <lanx.perl@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: copying text into a paste buffer as you type?
Date: Thu, 16 Dec 2010 03:27:28 -0800 (PST) [thread overview]
Message-ID: <25f60e45-6c58-4101-8cda-d4ee4bbba46c@fu15g2000vbb.googlegroups.com> (raw)
In-Reply-To: mailman.1.1292497153.3954.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2010-12-16 11:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1292497153.3954.help-gnu-emacs@gnu.org>
2010-12-16 11:27 ` LanX [this message]
2010-12-16 10:58 copying text into a paste buffer as you type? Rajinder Yadav
2010-12-16 16:49 ` Drew Adams
2010-12-16 18:07 ` Rajinder Yadav
2010-12-16 18:30 ` Drew Adams
2010-12-20 7:09 ` Kevin Rodgers
2010-12-20 15:09 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25f60e45-6c58-4101-8cda-d4ee4bbba46c@fu15g2000vbb.googlegroups.com \
--to=lanx.perl@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.