From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: sh-basic-offset help? Date: 6 Oct 2005 00:31:42 GMT Message-ID: References: Reply-To: ellenophilos@yahoo.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1128559060 25846 80.91.229.2 (6 Oct 2005 00:37:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2005 00:37:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 02:37:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENJkM-0000GF-5o for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Oct 2005 02:36:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENJkL-0006I9-Fy for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 20:36:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!canoe.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: individual.net H5jj5oYspIsHHeC0uApb/gv1e48rOAdMRfoCiXfSSoFZ6RjFaE User-Agent: slrn/0.9.8.1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:134388 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29963 Archived-At: Bruce Korb wrote: > > Hi, > > The shell script mode seems to be filled with so many offset > settings that I have trouble setting the offsets the way I > would like to have them set. Is there a straight forward > way to find them all or else find a "master" setting that > the others can be derived from? > > My preference is for "sh-basic-offset" and "sh-indentation" > to be 4. So, I get: > >> for x >> do >> statement >> done > > Sure looks like 2 to me. And what's with the indentation > of "do"? do/done should line up, indented or not. (I > would as soon not indent "do", but they must line up > either way.) "if" seems to work okay, but: > >> if test x >> then >> statement >> else >> statement >> fi > > Again, "then", "else" and "fi" ought to line up. > > Hints about the magic, please? :) Thank you! - Bruce I've tried to find a solution to this and failed. I've been looking for some sort of response to this, but none has appeared. My sole purpose in responding is to indicate that more than one person can't get shell mode to do the right thing - surely someone must be using Emacs for writing shell scripts! - Will