unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* place cursor automatically
@ 2003-08-18  8:57 Uwe Mayer
  2003-08-18 12:32 ` Kai Großjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Mayer @ 2003-08-18  8:57 UTC (permalink / raw)


Hi,

When I use Emacs in a Programming Mode that uses "{" and "}" to enclose
blocks I'd like it to complete the closing brace automatically, or at least
jump into the Block when I enter the closing brace, so I want to reduce:

"{" <ret> "}" <up> <end> <ret> <tab>

to

"{" <ret> "}"

How do you do that, or where do you start off? Can that behaviour be
configured or will I habe to go into lisp?

Thanks 
Uwe
-- 

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

* Re: place cursor automatically
  2003-08-18  8:57 place cursor automatically Uwe Mayer
@ 2003-08-18 12:32 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2003-08-18 12:32 UTC (permalink / raw)


Uwe Mayer <merkosh@hadiko.de> writes:

> When I use Emacs in a Programming Mode that uses "{" and "}" to enclose
> blocks I'd like it to complete the closing brace automatically, or at least
> jump into the Block when I enter the closing brace, so I want to reduce:
>
> "{" <ret> "}" <up> <end> <ret> <tab>
>
> to
>
> "{" <ret> "}"
>
> How do you do that, or where do you start off? Can that behaviour be
> configured or will I habe to go into lisp?

For parentheses you can type M-(.

There are various packages that do something similar for other
parentheses-like characters.  I think the "Autotype" manual that
comes with Emacs (C-h i d m Autotype RET) explains this.
-- 
Two cafe au lait please, but without milk.

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

end of thread, other threads:[~2003-08-18 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-18  8:57 place cursor automatically Uwe Mayer
2003-08-18 12:32 ` Kai Großjohann

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).