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: Spaces instead of tabs in new mode Date: Tue, 16 Jun 2009 17:40:49 -0700 Message-ID: <3F574AF323EC4FD9A3F0FF14F727574A@us.oracle.com> References: <11b141710906160506g77945d73i69d8c6b7305af386@mail.gmail.com><87d494nyxq.fsf@tux.homenetwork> <1245192577.15893.1.camel@drserver> 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 1245199315 25370 80.91.229.12 (17 Jun 2009 00:41:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 00:41:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Paulo J. Matos'" , "'Thierry Volpiatto'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 02:41:51 2009 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 1MGjDq-0000VP-9O for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 02:41:50 +0200 Original-Received: from localhost ([127.0.0.1]:60804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGjDp-0005uM-MM for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2009 20:41:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGjD0-0005CH-32 for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 20:40:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGjCv-00054k-24 for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 20:40:57 -0400 Original-Received: from [199.232.76.173] (port=42476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGjCu-000543-ML for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 20:40:52 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:57428) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGjCu-0001uU-4F for help-gnu-emacs@gnu.org; Tue, 16 Jun 2009 20:40:52 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5H0eh3Q026588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 17 Jun 2009 00:40:44 GMT Original-Received: from abhmt002.oracle.com (abhmt002.oracle.com [141.146.116.11]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5H0elEV016064; Wed, 17 Jun 2009 00:40:48 GMT Original-Received: from dradamslap1 (/141.144.80.217) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 16 Jun 2009 17:40:41 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <1245192577.15893.1.camel@drserver> Thread-Index: Acnu1PeFv1RuSfDvTn2VN00VIrwuTwADupQQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt002.oracle.com [141.146.116.11] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010207.4A383B8A.004A:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:65332 Archived-At: > > (setq-default indent-tabs-mode nil) to avoid tab indenting. > > > I programmed a new mode. Can't I say that specifically for this mode I > want this to always happen? Put (setq indent-tabs-mode nil) in the function that turns on your mode (e.g. `foo-mode'). This variable is automatically buffer-local, so when you use `setq' (not `setq-default') to set it, you are setting it only in the current buffer, that is, the buffer that is in your mode.