I know I can set something like -*- mode: read-only-mode -*- inside a commentary and Emacs will open the corresponding file as read-only. My problem is that I still want to read files that include such a line with the org-mode major mode; Emacs opens these files in fundamental-mode.
How can I tell Emacs to open a file as read-only and still make it use the correct major mode?