GNU bug report logs - #9110
how to map sh-mode to mean bash-mode

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 17 Jul 2011 20:43:01 UTC

Severity: wishlist

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: jidanni <at> jidanni.org
To: 9110 <at> debbugs.gnu.org
Subject: bug#9110: closed (Re: bug#9110: how to map sh-mode to mean bash-mode)
Date: Mon, 18 Jul 2011 07:53:45 +0800
>>>>> "GbTS" == GNU bug Tracking System <help-debbugs <at> gnu.org> writes:
GbTS> (add-hook 'sh-mode-hook
GbTS>           '(lambda () (and buffer-file-name
GbTS>                            (string-match "\\.sh\\'" buffer-file-name)
GbTS>                            (sh-set-shell "bash"))))
Thanks, but that doesn't also cover the case when there is a #!/bin/sh
but no .sh or .bash.




This bug report was last modified 14 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.