[Top][All Lists]

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

Help with keybinding to delete between {}

From: lampshade
Subject: Help with keybinding to delete between {}
Date: Tue, 4 Dec 2007 17:33:27 -0800 (PST)
User-agent: G2/1.0


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 ()
(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,

reply via email to

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