Modified after-save-hook to be local to the buffer.