From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.help Subject: Re: Major mode for bash shell scripts? Date: 10 Apr 2003 09:15:14 +0200 Organization: Lucent Technologies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii (1) Cancerous bugs (2) Illustrious caution (3) Deep-fried simultaneous gasket retributions X-Trace: main.gmane.org 1049959578 23420 80.91.224.249 (10 Apr 2003 07:26:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2003 07:26:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 10 09:26:16 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193WRr-00065S-00 for ; Thu, 10 Apr 2003 09:26:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193WRB-0004I2-05 for gnu-help-gnu-emacs@m.gmane.org; Thu, 10 Apr 2003 03:25:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!uunet!sac.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: sfsw51.de.lucent.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:111840 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8340 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8340 >>>>> "Brian" == Brian Poole writes: Brian> Brian> Is there a major mode for bash shell scripts? Brian> If not what is the best way to ensure good indentation in bash shell Brian> scripts? There's sh-script.el. You can use that for many different shells. Newer versions also support indentation (not as fancy as c-mode or cperl though). Didn't like the default indentation though, cause it looked like: if [ ... ] then ... fi for ... do ... done I had to tweak a few variables to change it to e.g. if [ ... ] then ... fi for ... do ... done Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?