[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Spaces instead of tabs in new mode

From: Drew Adams
Subject: RE: Spaces instead of tabs in new mode
Date: Tue, 16 Jun 2009 17:40:49 -0700

> > (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.

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]