From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.emacs.help Subject: sh-basic-offset help? Date: Thu, 22 Sep 2005 09:12:11 -0700 Message-ID: <4332D7DB.6000801@symantec.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127406824 12629 80.91.229.2 (22 Sep 2005 16:33:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2005 16:33:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 18:33:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EITyH-0007UI-EJ for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2005 18:30:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EITyG-0003fC-TU for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2005 12:30:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EITv6-0002n0-2J for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 12:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EITv1-0002lQ-9O for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 12:27:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EITv1-0002Ze-0p for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 12:27:31 -0400 Original-Received: from [143.127.12.111] (helo=silver.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EIThp-00074i-Rb for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 12:13:54 -0400 Original-Received: from sxchcon1-int.veritas.com (HELO SVLXCHCON1.enterprise.veritas.com) (10.137.18.171) by silver.veritas.com with ESMTP; 22 Sep 2005 09:13:54 -0700 Original-Received: from megami.veritas.com ([10.137.16.7]) by SVLXCHCON1.enterprise.veritas.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 22 Sep 2005 09:13:52 -0700 Original-Received: from [10.180.94.64]([10.180.94.64]) (1315 bytes) by megami.veritas.com via sendmail with P:esmtp/R:smart_host/T:smtp (sender: ) id for ; Thu, 22 Sep 2005 09:13:52 -0700 (PDT) (Smail-3.2.0.101 1997-Dec-17 #15 built 2001-Aug-30) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: help-gnu-emacs@gnu.org X-OriginalArrivalTime: 22 Sep 2005 16:13:52.0345 (UTC) FILETIME=[9F94C490:01C5BF90] 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:29638 Archived-At: 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