From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: emacs tab settings Date: Fri, 02 Jul 2004 14:28:50 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86lli2sid9.fsf@rumba.de.uu.net> References: <1088765783.3948.17.camel@invi-inr-04> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088771373 31295 80.91.224.253 (2 Jul 2004 12:29:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Jul 2004 12:29:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 02 14:29:24 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BgNAR-0006g0-00 for ; Fri, 02 Jul 2004 14:29:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgNCG-0005S0-8Q for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jul 2004 08:31:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BgNBr-0005Rp-Hl for help-gnu-emacs@gnu.org; Fri, 02 Jul 2004 08:30:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BgNBq-0005RQ-Ed for help-gnu-emacs@gnu.org; Fri, 02 Jul 2004 08:30:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BgNBq-0005RE-Cu for help-gnu-emacs@gnu.org; Fri, 02 Jul 2004 08:30:50 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BgNA0-0001st-LF for help-gnu-emacs@gnu.org; Fri, 02 Jul 2004 08:28:56 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BgN9z-0000MQ-00 for ; Fri, 02 Jul 2004 14:28:55 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jul 2004 14:28:55 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jul 2004 14:28:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:4Gv7wN0Zk06/DuUeemXMz2UVinY= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19420 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19420 Alpesh Mote writes: > I want to set the following indentation setting in my .emacs file could > you please help me with the same. The vi equivalent of the same is; > > :se ts=8 > :se softtabstop=4 > :se shiftwidth=4 As you might imagine, not all of us are vim gurus. What do the above settings do? In Emacs, there are two issues: first, how are tab characters displayed? And secondly, how many columns are indented? In Emacs, programming languages normally provide syntax-driven indentation. Each programming language mode has its own way to customize the indentation. Kai