[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spaces instead of tabs in new mode
From: |
Paulo J. Matos |
Subject: |
Re: Spaces instead of tabs in new mode |
Date: |
Fri, 19 Jun 2009 19:17:30 +0100 |
On Wed, Jun 17, 2009 at 1:40 AM, Drew Adams<drew.adams@oracle.com> 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