[Top][All Lists]

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

Re: Help with keybinding to delete between {}

From: Andreas Röhler
Subject: Re: Help with keybinding to delete between {}
Date: Wed, 5 Dec 2007 14:30:27 +0100
User-agent: KMail/1.9.5

Am Mittwoch, 5. Dezember 2007 02:33 schrieb lampshade:
> Hello,
> I would really like a keybinding that would allow me to delete any
> text between sexp's like {} (), etc no matter where I am between them
> and whether or not that text has spaces.
> For example
> {asdfdsfa asdfasdf asd}
> I would like to delete between leaving only the {} with my cursor
> inside ready to type.  So far I've been trying
> (defun delete_between ()
>       (interactive)
>       (backward-sexp)
>       (kill-sexp))
> (global-set-key [(control meta k)] 'delete_between)
> but that doesn't quite work.  Anyone have any improvements or help
> they could give me?
> Thanks in advance,
> lampshade
> _______________________________________________

Maybe try thingatpt-utils1.7 in gnu-emacs-sources.

Changed `delimited-atpt', so `kill-delimited-atpt' 

should do it now.

Remains to provide a key for it.

Andreas Röhler

reply via email to

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