Make generated header file read-only in an emacs buffer.