bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: should find-file detect executable files and assume shell-script mod


From: Stefan Monnier
Subject: Re: should find-file detect executable files and assume shell-script mode?
Date: 22 Feb 2002 18:11:03 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

>>>>> "Dan" == Dan Jacobson <jidanni@deadspam.com> writes:
> You see, I notice that most of the time I edit shell scripts, emacs
> just thinks it is a regular text file unless I put #!/bin/sh or -*-
> Mode: sh -*- in, or call it file.sh.

The convention under Unix is to start scripts with #! so if you
don't do that it's bad.
If you do have a #! but Emacs still doesn't use the proper major mode,
then maybe the problem is with interpreter-mode-alist.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]