Use 'setlocal' instead of 'set' for all buffer option changes.