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

[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:

   http://www.emacswiki.org/emacs-en/WholeLineOrRegion

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

--
Regards,


joe
Joe Casadonte
address@hidden

------------------------------------------------------------------------------
         Llama Fresh Farms => http://www.northbound-train.com
    Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
               Emacs Stuff => http://www.northbound-train.com/emacs.html
          Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
                       Live Free, that's the message!
------------------------------------------------------------------------------


reply via email to

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