Mark the whole file and then call "M-x untabify". Klaus > -----Ursprüngliche Nachricht----- > Von: Sing HU [mailto:[EMAIL PROTECTED]] > Gesendet am: Montag, 26. März 2001 17:46 > An: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Betreff: RE: convert existing .java file? > > This is definitely an emacs question and not JDE specific BUT..... > > That seemed to work but I noticed that I have spaces before > methods, statements, and "{}" and tabs before variable > declarations. How can ensure that I have no tabs and only > spaces as whitespace??? > > >Reply-To: <[EMAIL PROTECTED]> > >From: "Sandip Chitale" <[EMAIL PROTECTED]> > >To: "'Sing HU'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: RE: convert existing .java file? > >Date: Fri, 23 Mar 2001 15:44:51 -0800 > > > >C-x h M-x indent-region Ret > > > >HTH, > >Sandip V. Chitale > >work: (408) 535 1791 > >email: [EMAIL PROTECTED] > >web: http://www.brokat.com > > > >March 22.-28.2001 CeBIT > >Visit Brokat Technologies in Pavilion P32, our new location! > > > > > > > >> -----Original Message----- > >> From: Sing HU [mailto:[EMAIL PROTECTED]] > >> Sent: Friday, March 23, 2001 1:31 PM > >> To: [EMAIL PROTECTED] > >> Subject: convert existing .java file? > >> > >> > >> I have set up my (defun my-jde-mode-hook () > >> the way I like it. Now when I load an existing .java file I notice > >> that the jde options only apply to new code that I add to that file > >> using emacs. > >> > >> How can I re-format the entire file so that the hook options can be > >> applied to the entire file? > >> > >> > >> > >> ------------------------------------------------------------ > >> --== Sent via Deja.com ==-- > >> http://www.deja.com/ > >> > >> > >> > > > > > ------------------------------------------------------------ > --== Sent via Deja.com ==-- > http://www.deja.com/ > >
