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: 11 Apr 2003 15:43:30 +0200 Organization: Lucent Technologies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3E95A24C.4010204@yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050069806 26853 80.91.224.249 (11 Apr 2003 14:03:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2003 14:03:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 16:03:25 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 193z7l-0006yy-00 for ; Fri, 11 Apr 2003 16:03:25 +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 193yvD-00038T-00 for gnu-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2003 09:50:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newshub1.wanet.net!uunet!sac.uu.net!ash.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.help Original-Lines: 55 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:111875 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:8376 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8376 >>>>> "Kevin" == Kevin Rodgers writes: Kevin> Kevin> Klaus Zeitler wrote: >> I had to tweak a few variables to change it to e.g. >> if [ ... ] >> then >> ... >> fi Kevin> Could you post your variable settings? Thanks! (setq sh-indent-for-then 0) (setq sh-indent-for-do 0) (setq sh-indent-after-do '+) (setq sh-indent-for-case-label '*) (setq sh-indent-for-case-alt '+) (setq sh-indent-comment t) results in the following layout: if [ ... ] then ... else ... fi while/for ... do ... done case ... in a) ... ;; *) esac and comments will be aligned with the code. I have one OT question: My last followups to gnu.emacs.bug didn't show up. Is it not possible anymore to post directly to gnu.emacs.bug and do I have to send followups to bug-gnu-emacs@gnu.org instead? Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- You can't start worrying about what's going to happen. You get spastic enough worrying about what's happening now. -- Lauren Bacall