unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Help with keybinding to delete between {}
@ 2007-12-05  1:33 lampshade
  2007-12-05 10:48 ` Bernardo Bacic
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: lampshade @ 2007-12-05  1:33 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-12-14 11:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-05  1:33 Help with keybinding to delete between {} lampshade
2007-12-05 10:48 ` Bernardo Bacic
2007-12-05 12:55 ` William Xu
2007-12-05 13:30 ` Andreas Röhler
2007-12-05 23:50 ` Ilya Zakharevich
2007-12-06  6:33 ` Xah Lee
2007-12-06 17:14   ` Xah Lee
2007-12-12  9:20     ` lampshade
2007-12-13  3:59     ` Mike Mattie
     [not found]     ` <mailman.4961.1197518641.18990.help-gnu-emacs@gnu.org>
2007-12-13 10:39       ` Xah Lee
2007-12-13 10:44     ` Mike Mattie
2007-12-13 12:46       ` Mike Mattie
2007-12-13 13:01       ` Peter Dyballa
2007-12-14 11:43   ` Xah Lee
2007-12-07 16:30 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).