Additional followup: 1) Automatically removing trailing white space caused problems with editing build.gradle because of the ASCII art :)
2) To prevent emacs from mixing tabs and spaces, the following can be added to .emacs: (setq-default indent-tabs-mode nil) More tips appreciated, though! On Sat, Sep 12, 2015 at 4:42 PM, RJ Nowling <[email protected]> wrote: > Hi all, > > I keep introducing trailing whitespace into patches without meaning to, > and I'd like to know what other people do to prevent this. > > In my emacs file, I put > > (add-hook 'before-save-hook 'delete-trailing-whitespace) > > and I enabled a similar option in Eclipse. > > What do others do? > > Thanks, > RJ >
