mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 02:51:31 -08:00
(sh-mode): If there is no #!-line, use the shell
from sh-shell-file.
This commit is contained in:
parent
340fe50f3b
commit
f2d20357bb
1 changed files with 1 additions and 6 deletions
|
|
@ -1297,12 +1297,7 @@ with your script for an edit-interpret-debug cycle."
|
|||
"rpm")))))
|
||||
(if interpreter
|
||||
(sh-set-shell interpreter nil nil)
|
||||
(progn
|
||||
;; If we don't know the shell for this file, set the syntax
|
||||
;; table anyway, for the user's normal choice of shell.
|
||||
(set-syntax-table (sh-feature sh-mode-syntax-table))
|
||||
;; And avoid indent-new-comment-line (at least) losing.
|
||||
(setq comment-start-skip "#+[\t ]*"))))
|
||||
(sh-set-shell sh-shell-file nil t))
|
||||
(run-hooks 'sh-mode-hook))
|
||||
;;;###autoload
|
||||
(defalias 'shell-script-mode 'sh-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue