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

Re: Python and Emacs



Il mar, 2002-05-21 alle 22:27, Jérôme Marant ha scritto:
> 
> Hi,
> 
>   I'm sorry, this may be a bit off topic but I don't really know
>   where I can post this question.
> 
>   I'm a bit annoyed with Emacs when editing Python programs because
>   Emacs always replaces TABs with spaces ; this wouldn't bother me if
>   Emacs was the only editor in the world. But when you share programs
>   with others, it is better to have real TABs instead of spaces.
>   I know about the "C-q TAB" but I don't want to use it every time
>   I want automatic indentation. 
> 
>   Does anyone know how to achieve this?

from the emacs manual:

   Emacs normally uses both tabs and spaces to indent lines.  If you
prefer, all indentation can be made from spaces only.  To request this,
set `indent-tabs-mode' to `nil'.  This is a per-buffer variable, so
altering the variable affects only the current buffer, but there is a
default value which you can change as well.  *Note Locals::.

   There are also commands to convert tabs to spaces or vice versa,
always preserving the columns of all nonblank text.  `M-x tabify' scans
the region for sequences of spaces, and converts sequences of at least
three spaces to tabs if that can be done without changing indentation.
`M-x untabify' changes all tabs in the region to appropriate numbers of
spaces.

-- 
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
INIT.D Developer                                           fog@initd.org
   God is real. Unless declared integer. -- Anonymous FORTRAN programmer

Attachment: signature.asc
Description: PGP signature


Reply to: