jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] Delete to end of line


Thanks, Guenter.

setkey("kill_line", "^K");
KILL_LINE_FEATURE=1;

Excellent!  This works better than my emacs function.
I love that it deletes the end-of-line character if at the start of line,
but otherwise doesn't.

-Doug

On Thu, May 5, 2011 at 10:44 PM, Guenter Milde
<milde@xxxxxxxxxxxxxxxxxxxxx>wrote:

> On  5.05.11, Doug Kramer wrote:
>
> > I want this function I use in emacs:
> >    If the cursor is not at the end of the line, delete to end of line
> > (keeping newline),
> >    but if the cursor is at the end of the line, delete the newline
> > character.
>
> > That way, continuing to hit Ctrl-K will alternately delete to eol and
> then
> > delete newline, so I can use it to delete multiple lines.
>
> Integer_Type `KILL_LINE_FEATURE' == 1
>
>  SYNOPSIS
>  Configure the kill_line function
>
>  USAGE
>  Int_Type KILL_LINE_FEATURE
>
>  DESCRIPTION
>  If non-zero, kill_line will kill through end of line character if the
>  cursor is at the beginning of a line.  Otherwise, it will kill only to
>  the end of the line.
>
>  SEE ALSO
>  bolp
>
>
> Günter
> _______________________________________________
> Jed-users-l mailing list
> Jed-users-l@xxxxxxxx
> http://mailman.jtan.com/mailman/listinfo/jed-users-l
>
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]