Thanks Ben,

My problem seems to be resolved.  One thing that I haven't been able to
figure out is where I can customize the style of the main abbreviation,
even with jde-gen-k&r set to nil, main expands to:

public class myClass
{
    public static void main (String[] args) {
        return;
    } // end of main ()
}

To keep it consistent with the style I have to go back up and RET on the
opening brace.  I didn't find it in the jde-mode-abbreviations.  And
didn't see it in the lisp source?

Jeff

Ben Coughenour wrote:
> 
> There are a variety of code formatting modes built into emacs that will do
> just what you are requesting.  I have found that ellemtel best meets my
> needs but you will have to play with them to find which one matches yours.
> Code snippet from my .emacs to use ellemtel spacing below.
> 
> Ben
> 
> ;; set indentation style to ellemtel
> (defun my-c-mode-common-hook ()
>   ;; use Ellemtel style for all C like languages
>   (c-set-style "ellemtel")
>   )
> (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
> 
>

Reply via email to