Re: File type misclassification
David Kastrup <dak@gnu.org> writes:
>> 1) Restrict the magic for PostScript files to %!PS
>>
>> ("%!PS" . ps-mode)
>
> And probably EPS?
Dunno.
>>
>> 2) Recognize the specific case of TEX
>>
>> ("%![^VT]" . ps-mode)
> Sigh. Seems like a magic string for the "TeXshop" TeX editor. But I
> think just ruling out [VT] is still asking for trouble.
So maybe add this to the magic-mode-alist before the ps rule:
("%!TEX" . tex-mode)
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
Reply to: