On Wed, 09 Aug 2006 07:33:41 -0700 Rob Wolfe <[EMAIL PROTECTED]> wrote:
#> Slawomir Nowaczyk wrote: #> #> > Really, typing brace after function/if/etc should add newlines and #> > indent code as required -- automatically. Actually, for me, it is even #> > *less* typing in C and similar languages... I probably should teach my #> > Emacs to automatically add newline after colon in Python, just as it #> > does after a brace in C... As soon as I figure out how to deal with #> > dictionary literals. Hmmm. #> #> Are you sure? My Emacs already know how to do it with the help #> of python-mode and magic function py-newline-and-indent. #> #> emacs-version "21.3.1" #> py-version "$Revision: 4.63 $" OK, my python-mode.el was older, so I upgraded to 4.75, but it still doesn't work. Did you mean that after you write if x==1: the newline is inserted automatically when you type ":"? That's a functionality I would like to see, but it doesn't seem to work this way. Anyway, I am using python.el most of the time and it doesn't have that functionality yet. -- Best wishes, Slawomir Nowaczyk ( [EMAIL PROTECTED] ) Live in the past and future only. -- http://mail.python.org/mailman/listinfo/python-list