[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File type not recognised
From: |
Reiner Steib |
Subject: |
Re: File type not recognised |
Date: |
Fri, 07 Oct 2005 20:19:41 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
On Fri, Oct 07 2005, Peter Dyballa wrote:
> Am 07.10.2005 um 16:25 schrieb Stefan Monnier:
>
>>> I think a PostScript file does not start with %!TEX ...
>>
>> Try "file <blabla>" and you'll probably see that %! is
>> traditionally used as the marker of a PS file.
>
> No.
$ file -version
file-4.09
magic file from /etc/magic:/usr/share/misc/magic
$ echo -e '%!TEX'|file -
/dev/stdin: PostScript document text
You can replace the entry in `magic-mode-alist' if you don't like the
default:
(setq magic-mode-alist
(remove '("%![^V]" . ps-mode) magic-mode-alist))
(add-to-list 'magic-mode-alist '("%!\n" . ps-mode))
(add-to-list 'magic-mode-alist '("%!PS-Adobe" . ps-mode))
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/