On 5/16/13 5:08 AM, ken wrote:
On 05/16/2013 02:27 AM Kevin Rodgers wrote:
On 5/15/13 5:48 AM, ken wrote:
On 05/15/2013 01:17 AM Kevin Rodgers wrote:
On 5/14/13 2:39 PM, ken wrote:
On 05/14/2013 09:39 AM Eli Zaretskii wrote:
Emacs does look at the magic signature, see magic-mode-alist.
....
Yes: Instead of trying to detect text files by their content, detect all
the
other kinds of files by their content or name (and then default to
Fundamental
mode).
So given this:
echo This is not an image file. > list.gif; emacs list.gif &
which mode should emacs invoke?
If you agree with the convention that .gif files are GIF images, then
image-mode.
If you choose to violate that convention, then I suggest:
echo -e "-*- mode: Text;-*-\nThis is not an image file." > list.gif;
emacs list.gif