(set-auto-mode): Use it. (inhibit-first-line-modes-regexps): Use \\', not $.
Attach a file by drag & drop or click to upload