Looking for indent advice howto in emacs python-mode

Steven W. Orr steveo at syslang.net
Mon Mar 31 12:32:38 EDT 2008


Here's what I want to do:

if ( ( v == 1 )
   or ( v == 2 )
   or ( v == 3 ) ):
     pass

but emacs (left to its own devices, does this.

if ( ( v == 1 )
      or ( v == 2 )
      or ( v == 3 ) ):
     pass

It works great for me in C-mode. Does anyone know how to jimmie up 
python-mode so it would know how to do this?

TIA


-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



More information about the Python-list mailing list