[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing sh-mode shell type.
From: |
Kevin Rodgers |
Subject: |
Re: Changing sh-mode shell type. |
Date: |
Mon, 07 Nov 2011 23:18:04 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 |
On 10/27/11 7:52 AM, Oleksandr Gavenko wrote:
According to 'sh-mode':
If you generally program a shell different from your login shell
you can set `sh-shell-file' accordingly.
The next sentence is:
If your shell's file name doesn't correctly
indicate what shell it is use `sh-alias-alist' to translate.
As usual I try add:
# -*- sh-shell-file: "/bin/zsh"; mode: sh -*-
but it set to "bash" in any case...
Why not specify your shell's file name:
#!/bin/zsh
I debug issue and found that when you enter into
'sh-mode' function 'sh-shell-file' have value "/bin/bash"
as it set by:
(defcustom sh-shell-file ...)
so executed:
(sh-set-shell
(cond ((save-excursion
.... ....
(t
sh-shell-file))
nil nil)
It is possible pass file local variable before mode activation
code was executed??
--
Kevin Rodgers
Denver, Colorado, USA
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Changing sh-mode shell type.,
Kevin Rodgers <=