[Emacs-ada-mode] Cleaning buffer before saving
Stephen Leake
stephen_leake at stephe-leake.org
Sat Feb 6 13:26:03 PST 2010
Simon Wright <simon at pushface.org> writes:
>> The approved emacs 22 compatible replacement is to put this in your
>> .emacs:
>>
>> (add-hook 'before-save-hook 'delete-trailing-whitespace)
>> (setq-default indent-tabs-mode nil)
>
> OK, but no mention of this in ada-mode.html (that I could see). Work
> for me!
Good point.
> In Carbon Emacs, the customisation buffer for Ada still says "Ada
> Clean Buffer Before Saving: ... Non-nil means remove trailing spaces
> and untabify the buffer before saving." Perhaps it needs a small essay
> like the above instead ... or a pointer to the info. The current
> make-obsolete-variable (surely make-variable-obsolete?!) only outputs
> a message on byte compilation.
That is bad. I'll see what I can do.
--
-- Stephe
More information about the Emacs-ada-mode
mailing list