Improve compile command

- Set buffer read only
- Set cursor to beginning of buffer
Merge pull request #201 from defunkt/readonly-compile-buffer

Improve compile command