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: Kevin Rodgers
Subject: Re: Setting shell type in sh-mode
Date: Thu, 17 Oct 2002 15:41:34 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Glenn Morris wrote:

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.


What happens if you set sh-shell to the `tcsh' symbol there, instead of (or in
addition to) setting sh-shell-file to the "/usr/bin/tcsh" string?

--
<a href="mailto:&lt;kevinr&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

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