On 28 Feb 2014, at 18:12, Ludovic Brenta <[email protected]> wrote:

> It installs another hook in write-contents-functions that deletes
> trailing whitespace.  We want this function in all languages that we use
> (mostly Ada, Bourne shell, C and Perl).  Like I said, we could easily
> duplicate our hook in ada-hook but I think this should be unnecessary

I couldn’t think of a mode where I wouldn’t want this, so I have

(add-hook 'before-save-hook 'delete-trailing-whitespace)

… and also, I see, with a note that I did it for ada-mode 4.01 (but I don’t 
remember why)

(setq-default indent-tabs-mode nil)

The delete-trailing-whitespace made it hard to try out 
http://compsoc.dur.ac.uk/whitespace/ ...
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to