From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.help Subject: Re: indentation - always a pita Date: 26 Jun 2003 10:13:52 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <847k7afzu4.fsf@lucy.is.informatik.uni-duisburg.de> <844r2exepk.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056616084 26252 80.91.224.249 (26 Jun 2003 08:28:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2003 08:28:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 10:28:03 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 19VS6t-0006pA-00 for ; Thu, 26 Jun 2003 10:28:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VS4e-00065M-SU for gnu-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2003 04:25:44 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeeder2.randori.com!news.sanjose1.Level3.net!Level3.net!news.oracle.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 140.84.81.137 Original-X-Trace: news.oracle.com 1056615717 140.84.81.137 (Thu, 26 Jun 2003 01:21:57 PDT) Original-NNTP-Posting-Date: Thu, 26 Jun 2003 01:21:57 PDT Original-Xref: shelby.stanford.edu gnu.emacs.help:114751 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:11242 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11242 Harry Putnam writes: > C-h v sh-indentation > sh-indentation's value is 2 Try `sh-basic-offset' instead. That's what I use. I tried to format your example with the following result: if [ ];then if [ ];then case $opt in t) cmd lf [ ];then cmd fi ;; h) cmd if [ ];then case $otheropt in a) cmd if [ ];then cmd fi ;; b) cmd :: esac fi esac if [];then cmd ii fi fi Jens