Message from discussion
copy-line
Received: by 10.204.151.213 with SMTP id d21mr5538351bkw.0.1343242083442;
Wed, 25 Jul 2012 11:48:03 -0700 (PDT)
Received: by 10.66.85.71 with SMTP id f7mr1206469paz.39.1343242069286;
Wed, 25 Jul 2012 11:47:49 -0700 (PDT)
Path: m12ni23694bkm.0!nntp.google.com!news1.google.com!u4no2298313pbs.0!news-out.google.com!b9ni57834307pbl.0!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: Guido Van Hoecke <gui...@gmail.com>
Newsgroups: gnu.emacs.help
Subject: Re: copy-line
Date: Wed, 25 Jul 2012 20:47:22 +0200
Lines: 31
Approved: help-gnu-em...@gnu.org
Message-ID: <mailman.5605.1343242068.855.help-gnu-emacs@gnu.org>
References: <1341515294.71719.YahooMailNeo@web163106.mail.bf1.yahoo.com>
<1343146015.53752.YahooMailNeo@web163101.mail.bf1.yahoo.com>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1343242069 27794 208.118.235.17 (25 Jul 2012 18:47:49 GMT)
X-Complaints-To: action@cs.stanford.edu
Cc: "help-gnu-em...@gnu.org" <help-gnu-em...@gnu.org>
To: Enda <enda...@yahoo.com>
Envelope-to: help-gnu-em...@gnu.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc:content-type;
bh=lvE5+m9S6Ayc4/9x5LXULtvARPkj/nx+R6kvm0pHawY=;
b=HQqjAK7aCdQiBItAN3Rs+4OuFlHash5sRglTQZjJRxds22WFZAF5irZI5sUYH8x1V1
u4eWIqmmEKr/TymCZ3Ko3G/BmpS9on7jCWNYmwJDzU6zzAciavqlMN5/8ODRrq2umFHA
+wwqBywkVXJwr7YM0Aiw5jVnuQEVu015IxKpiaAD3Dpu29V96ErAXDEnphh5EIu3noMm
XzT6IP8rAhb6TMBq0WzhmPAnn6Td7Nnnhd7lvLJuohXU8KtrqLTuOhQVvDw6AWv83gM5
Xi+HuIHCkGISvyoqqQQgi0b18Yi55i86rnrZmlNjFWf57H/91xi3vOhkfEYNh1VX4t0a
t43Q==
In-Reply-To: <1343146015.53752.YahooMailNeo@web163101.mail.bf1.yahoo.com>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 209.85.213.169
X-BeenThere: help-gnu-em...@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
<mailto:help-gnu-emacs-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-em...@gnu.org>
List-Help: <mailto:help-gnu-emacs-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
<mailto:help-gnu-emacs-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain; charset=UTF-8
On 24 July 2012 18:06, Enda <enda...@yahoo.com> wrote:
> Usedn't there be a copy-line in Emacs (which would copy the line). In Vi,
> copying a line is yy, what is the shortest way of copying a line in Emacs
> (without writing a lisp function in .emacs)? Should there be a default
> keystroke for copying a line?
>
You may want to look at
http://www.northbound-train.com/emacs/whole-line-or-region.el
Copies or kills with one keystroke, the default one :)
I found this via http://emacswiki.org/emacs/CopyingWholeLines
where you can find other suggestions.
I prefer the whole-line-or-region apprach.
HTH,
Guido
--
Good government never depends upon laws, but upon the personal qualities of
those who govern. The machinery of government is always subordinate to the
will of those who administer that machinery. The most important element of
government, therefore, is the method of choosing leaders.
-- Frank Herbert, "Children of Dune"
http://vanhoecke.org ... and go2 places!