try autocommands for scratch filetype (why is it not working?)