From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: indent-tab-mode Date: Sat, 30 Sep 2006 23:33:15 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87psddujj8.fsf@baldur.nicundtas.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159656036 21113 80.91.229.2 (30 Sep 2006 22:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2006 22:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 01 00:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTnVO-0004k5-JB for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Oct 2006 00:40:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTnVN-0002nB-Uw for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Sep 2006 18:40:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!news.germany.com!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: dslb-084-063-035-090.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1159651996 2641 84.63.35.90 (30 Sep 2006 21:33:16 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Sat, 30 Sep 2006 21:33:16 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:of31tKfPhatG8VBzggKERtNSDr0= Original-Xref: shelby.stanford.edu gnu.emacs.help:142121 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:37741 Archived-At: Gary Wessle writes: Hi Gary, > my indent-tab-mode is on but when I am writing in sh mode > > #!/bin/sh > if [ ... ] > then > > the "then" is not indented automatically. how can I fix this? `indent-tab-mode' has nothing to do with how the indention of certain programming language constructs looks like. If it's non-nil, indentation uses tabs, if it's nil it uses spaces. ,----[ C-h v indent-tabs-mode RET ] | indent-tabs-mode is a variable defined in `C source code'. | | [...] | | Documentation: | *Indentation can insert tabs if this is non-nil. | Setting this variable automatically makes it local to the current buffer. `---- I think it's quite common not to indent `then': ,---- | if [...] | then | do-this | do-that | done `---- Another common style is: ,---- | if [...]; then | do-this | do-that | done `---- Bye, Tassilo -- My opinions may have changed, but not the fact that I am right.