I'm guessing this is GNU Emacs specific? That font-lock defun and variable aren't defined in my version of Xemacs.
> -----Original Message----- > From: Jeffrey Phillips [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 14, 2004 6:56 AM > To: Mark D. Hansen > Cc: [EMAIL PROTECTED] > Subject: Re: Auto-format code to width <= 80 > > > Not sure about auto-format, but I highlight (my warning face > is red) the part of lines that extend past 80 characters using this: > > (defun my-font-lock-prepends (mode) > "Adds a 80 character line-width" > (font-lock-add-keywords > mode > '(("\\(.\\{80\\}\\)\\(.+\\)" > 2 font-lock-warning-face prepend)))) > > (my-font-lock-prepends 'jde-mode) > > -jeffrey > > On Tue, 14 Dec 2004 09:01:20 -0500, Mark D. Hansen > <[EMAIL PROTECTED]> 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 > > >