This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: proper .emacs for gcc code?
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: tromey at redhat dot com
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 09:56:57 +0000 (GMT)
- Subject: Re: proper .emacs for gcc code?
- References: <863czq5wkz.fsf@megacz.com><871yfawemi.fsf@creche.redhat.com>
Tom Tromey writes:
> >>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>
> Adam> Does anybody know the magic incantation to get emacs to indent
> Adam> code the way the gcc source tree does it?
>
> I use this:
>
> (add-hook 'java-mode-hook
> (function
> (lambda ()
> (c-set-offset 'inline-open 0)
> )))
Better:
(add-hook 'java-mode-hook
(function
(lambda ()
(progn
(c-set-style "gnu")
(c-set-offset 'inline-open 0)
))))
Andrew.