Hi Mark, 

For a different approach, take a look at jde-jalopy.el at 
http://home.nc.rr.com/nascifandelaine/emacs.html

It integrates Jalopy, an open-source Java pretty-printer, with JDE. It allows 
you can customize a lot of different aspects of your code "appearance" (brace 
positioning, use of spaces and empty lines, etc.) and maximum line length is 
one. It will reformat the code to satisfy your specifications taking Java 
syntax into account.

Regards,
  Nascif


> -----Original Message-----
> From: Troy Daniels [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 14, 2004 12:47 PM
> To: Mark D. Hansen
> Cc: [EMAIL PROTECTED]
> Subject: Re: Auto-format code to width <= 80
> 
> At 05:34 PM 12/14/2004 +0000, Jason Rumney wrote:
> 
> >Mark D. Hansen wrote:
> >
> >>Can anyone tell me how to configure emacs/jde so that my java code 
> >>will auto-format to have column width 80?
> >>
> >>Thanks,
> >>
> >>Mark
> >>
> >auto-fill-mode
> 
> That works, but if you're not paying attention, you can get 
> code that looks like this:
> 
>         object.method(someArg,
>                              "a rather
> long string",
>                               new
> AClassWithAReallyLongName(3));
> 
> While this meets the requirement of not having anything 
> beyond column 80, it's probably not what you actually want.  
> Especially since the compiler won't accept the string.
> 
> The various options other people have been suggesting are 
> probably better.
> 
> Troy
> 
> 
> 
> 
> ----------------------------------------
> Troy Daniels
> [EMAIL PROTECTED]
> 781-273-3388 x218
> 
> 

Reply via email to