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

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

Re: Setting shell type in sh-mode


From: Glenn Morris
Subject: Re: Setting shell type in sh-mode
Date: Thu, 17 Oct 2002 18:07:21 +0100
User-agent: Gnus, GNU Emacs (www.gnu.org/directory/emacs.html)

Kevin Rodgers wrote:

> I thought the syntax had to be
>
> # -*- mode: sh-mode; sh-shell-file: "/usr/bin/tcsh"; -*-

Yes, I used to think that too, but then I read this in the info node "Local
Variables in Files":

    _If `mode' is used to set a major mode, it should be the first
    "variable" in the list._

This implies to me (though not very clearly), that the "mode" statement is
optional, but if present it must go at the front.

Anyway, I can confirm that sh-shell-file is set to the "tcsh" value whether
or not I put the "mode" keyword in; but it happens after the mode setup and
so has no effect.

> Did you try adding a local variables list at the end of the file?

Just tried that now, no luck - same effect as putting the variable at the
top of the file.


reply via email to

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