Improve compile command

- Set buffer read only
- Set cursor to beginning of buffer