Use advice to check syntax on save-buffer

This addresses #337.