From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to change indenting from spaces to tabs? Date: Wed, 13 Aug 2008 09:23:16 -0700 Message-ID: <000a01c8fd60$e4342710$c2b22382@us.oracle.com> References: <18922383.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218644709 7899 80.91.229.12 (13 Aug 2008 16:25:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 16:25:09 +0000 (UTC) To: "'TriKri'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 18:26:01 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTJAY-0002gy-Jt for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 18:25:55 +0200 Original-Received: from localhost ([127.0.0.1]:46178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTJ9b-0006Uf-7m for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 12:24:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTJ9H-0006UO-2P for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 12:24:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTJ9E-0006U9-Jk for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 12:24:33 -0400 Original-Received: from [199.232.76.173] (port=39363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTJ9E-0006U6-Eh for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 12:24:32 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:14479) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTJ9D-00075k-CE for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 12:24:32 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m7DGONk8002262; Wed, 13 Aug 2008 11:24:24 -0500 Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m7DBBB2x003065; Wed, 13 Aug 2008 10:24:23 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt357.oracle.com with ESMTP id 11460693861218644595; Wed, 13 Aug 2008 11:23:15 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 13 Aug 2008 09:23:15 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <18922383.post@talk.nabble.com> Thread-Index: Acj9XbMusHiNdKK2Rd260MTpfH2euAAApafA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:56577 Archived-At: > indenting should be done by inserting 1 tab instead > of 4 spaces, where the tab width should be set to 4. > > How can I make Emacs indent using tabs, and possibly also > changing the tab width? (setq-default indent-tabs-mode t) (setq default-tab-width 4) Or perhaps set these only for the mode you want (put in the mode hook): (setq indent-tabs-mode t tab-width 4) The Emacs manual is your friend. Use `i' to look up keywords (such as `tab' and `width') in the index.