[Top][All Lists]

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

Re: whole-line-or-region

From: Joe Casadonte
Subject: Re: whole-line-or-region
Date: Thu, 04 Dec 2008 14:24:48 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)

On 29 Nov 2008, Francesco Potortì wrote:

> This is what I have had in my .emacs for years.  It is one of those
> things that I miss most when using an Emacs that I have not yet
> customised:
> (defun kill-entire-line (n)
> "Kill ARG entire lines starting from the one where point is."
> (interactive "*p")
> (beginning-of-line)
> (kill-line n))
> (global-set-key "\M-k" 'kill-entire-line)

I added an example to the Emacs Wiki page explaining why
whole-line-or-region is different than this simpler function:

Whether or not that's important for you is, of course, up to you.  Enjoy!


Joe Casadonte

         Llama Fresh Farms =>
    Ramblings of a Gay Man =>
               Emacs Stuff =>
          Music CD Trading =>
                       Live Free, that's the message!

reply via email to

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