[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++/Java/C modes
From: |
Eli Zaretskii |
Subject: |
Re: C++/Java/C modes |
Date: |
19 Nov 2003 16:09:26 +0200 |
> From: David Rasmussen <david.rasmussen@gmx.net>
> Newsgroups: gnu.emacs.help
> Date: Wed, 19 Nov 2003 11:38:53 +0100
>
> 1) How do change it so that when I press enter on a line, the cursor is
> already at the natural indentation point with spaces inserted before.
Bind RET to the function newline-and-indent.
> I guess the last question is about using the
>
> if (whatever) {
> blabla
> }
>
> style. I (want to) use the
>
> if (whatever)
> {
> blabla
> }
>
> style.
You will find the answer to this in the CC Mode manual, which is part
of a standard Emacs distribution. There's a chapter there which
explains how to customize indentation interactively.