Xemacs Python Mode.

Chris Barker cbarker at jps.net
Fri Jul 23 17:56:51 EDT 1999


Thanks Gary,

This gets me close enough to be functional, but isn't quite there. The
problem is that if there are spaces in there, it won't reset them to
tabs, which is what I would like. For the most part, it won't be an
issue, but I'd just like it to be totally consistent.

What I really want is for Python mode to have an option like
"use-only-tabs" or "use-only-spaces". In fact all you would really need
to do is have py-indent settable to an arbitrary string, rather that an
integer. Then folks could set it to be four spaces, or a tab, or two
tabs, or whatever.

Quite frankly, I'm confused as to why anyone would think it's a good
idea to mix tabs and spaces at all, but that's what we're stuck with.



Gary Herron wrote:
> Chris Barker wrote:
> > Does anyone know if I can set emacs mode to indent with ONLY tabs? (and
> > if so, how?) While I'm at it I'd like the tabs to show up as four spaces
> > while in Python mode also.
> >
> 
> I have my emacs setup to use one tab per indent level, and to display
> tabs as four spaces.  I believe that this is all controlled by the
> following three settings found in the customization section of my .emacs
> file.
> 
> (custom-set-variables
>  '(py-indent-offset 4)
>  '(tab-width 4)
>  '(py-smart-indentation nil)
>  ...
> )


-- 
Christopher Barker,
Ph.D.                                                           
cbarker at jps.net                      ---           ---           ---
http://www.jps.net/cbarker          -----@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Water Resources Engineering       ------   @    ------   @   ------   @
Coastal and Fluvial Hydrodynamics -------      ---------     --------    
------------------------------------------------------------------------
------------------------------------------------------------------------




More information about the Python-list mailing list