proper .emacs for gcc code?
Andrew Haley
aph@cambridge.redhat.com
Mon Feb 25 05:02:00 GMT 2002
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.
More information about the Java
mailing list