read-only-mode new in Emacs 24.3, provide fallback for older version.
Fix indentation to use spaces
Merge pull request #41 from simongr/read-only-compat

read-only-mode new in Emacs 24.3, provide fallback for older version.