Set modifiable and readonly flags through autocmds

This allows to have the proper options, no matter how the file is opened