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

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

Re: Delete (kill) entire line at cursor - how?


From: Matthew Flaschen
Subject: Re: Delete (kill) entire line at cursor - how?
Date: Mon, 26 Mar 2007 23:09:03 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

anoop aryal wrote:
> i'm sure it could be done better but here's something you can put in 
> your .emacs file:
> 
> (defun c-kill-statement ()
>   "a handy way to kill a statement even when it spans multiple lines."
>   (interactive)
>   (save-excursion
>     (c-beginning-of-statement-1)
>     (let ((start (point)))
>       (c-end-of-statement)
>       (let ((end (point)))
>         (kill-region start end)))))

Thanks, but I really have no need for this.  I was just curious whether
emacs had such semantics built-in.

Matt Flaschen




reply via email to

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