From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Re: Spaces instead of tabs in new mode Date: Fri, 19 Jun 2009 19:17:30 +0100 Message-ID: <11b141710906191117p1955cebfi8b5fb929c3a33d84@mail.gmail.com> References: <11b141710906160506g77945d73i69d8c6b7305af386@mail.gmail.com> <87d494nyxq.fsf@tux.homenetwork> <1245192577.15893.1.camel@drserver> <3F574AF323EC4FD9A3F0FF14F727574A@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245435503 32063 80.91.229.12 (19 Jun 2009 18:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2009 18:18:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Thierry Volpiatto To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 19 20:18:20 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 1MHifM-0006O1-9U for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jun 2009 20:18:20 +0200 Original-Received: from localhost ([127.0.0.1]:54492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHifL-0006Ff-Ic for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jun 2009 14:18:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHiez-0006A1-20 for help-gnu-emacs@gnu.org; Fri, 19 Jun 2009 14:17:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHieu-0005wQ-7g for help-gnu-emacs@gnu.org; Fri, 19 Jun 2009 14:17:56 -0400 Original-Received: from [199.232.76.173] (port=36607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHieu-0005wH-1Y for help-gnu-emacs@gnu.org; Fri, 19 Jun 2009 14:17:52 -0400 Original-Received: from mail-fx0-f224.google.com ([209.85.220.224]:60007) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHiet-0003PZ-OC for help-gnu-emacs@gnu.org; Fri, 19 Jun 2009 14:17:51 -0400 Original-Received: by fxm24 with SMTP id 24so2642591fxm.42 for ; Fri, 19 Jun 2009 11:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=EuJdCfEg1Rzu/9pQ4kbpR1aUUR0B5FY9Oo+emJL7oNQ=; b=EDipnMvH1D6+zD6ZTdKpzpgDlzWU2n6x6k7a2zqpi2p75NGVk7Irm0TevphcTl8PPJ AKjlLi+TuNF9Nxc+m6cfQKtNo7llDx/8yA4wDV8R2Rcg9ue6RSvX3NXPXyEuKiBpYLG6 ywFVNjeprZPGSw17Ikirhj481KktOzzCLRaA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=NYQZNtAbDjrKR3L/8RpTbNa3b57O5Zw9nooyn6ri7JqDhA2KeysXqS/r96LiT2NFFM o4MBdpXFSAzY4+9Bky+wZYQuiWEa40GhTcVDSHmWcg/WspQWkE5PduAzSezox/8AEPv7 v3q3xkZwbiO+ynH2ODy67248MkqHl2niAmfmY= Original-Received: by 10.103.197.17 with SMTP id z17mr2065180mup.19.1245435470065; Fri, 19 Jun 2009 11:17:50 -0700 (PDT) In-Reply-To: <3F574AF323EC4FD9A3F0FF14F727574A@us.oracle.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65386 Archived-At: On Wed, Jun 17, 2009 at 1:40 AM, Drew Adams wrote: >> > (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. > > Great, that's what I wanted! :) -- Paulo Jorge Matos - pocmatos at gmail.com http://www.pmatos.net