Could it be that you are wanting to use the K&R (if you are not familiar with this
term then
you really are a newbie) style of curly brace placement as in
if ( blah) { // this style allow you to see more of your code on the
screen at one time
statements; // and i believe sends some programmers into a fit (eg. richard
stallman)
}
rather than
if ( blah ) // many places I have worked demand that the curly brace
{ // be on a separate line
statements;
}
and some even use this style (which I personally hate)
if ( blah )
{
statements;
}
JDE supports all these styles plus many more and in fact you can make up your own. I
would
look more closely at the documentation for JDE and emacs.
John Syre
> ----------
> From: Paul Kinnucan[SMTP:[EMAIL PROTECTED]]
> Reply To: Paul Kinnucan
> Sent: Wednesday, July 11, 2001 9:54 AM
> To: Sergei Gnezdov; [EMAIL PROTECTED]
> Subject: Re: Java code conventions from Sun
>
>
> ----- Original Message -----
> From: "Sergei Gnezdov" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 11, 2001 9:53 AM
> Subject: Java code conventions from Sun
>
>
> > I am new to emacs.
> >
> > I don't seem to like the way emacs wants to format my code.
> >
>
> The only formatting that Emacs does is indenting, which is completely
> customizable. See cc-mode in the Emacs help.
>
> > I'd like to be able to code in emacs using style described in "Code
> > Conventions for the JavaTM Programming Language" from Sun:
> >
> > http://java.sun.com/docs/codeconv/
> >
>
> Really? Well the only formatting rules that this document gives are the
> following
>
> 1. Don't use lines longer than 80 characters.
>
> 2. Directions for how to break lines longer than 80 characters.
>
> Note that Emacs does not break lines. You have to do it yourself and
> so you are free to follow whatever convention you please.
>
> 3. Use 4 spaces as the basic unit of indentation.
>
> NOTE THAT 4 SPACES IS THE DEFAULT UNIT OF INDENTATION
> USED BY EMACS.
>
> What this means is the Emacs adheres to the Sun guidelines BY DEFAULT. So
> what your complaint?
>
>
> - Paul
>