unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indentation in python.el after "Enter"
@ 2007-07-11  7:35 Alexander Tsamutali
  2007-07-11  8:24 ` Eli Zaretskii
  2007-07-11  8:46 ` Ruslan Spivak
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Tsamutali @ 2007-07-11  7:35 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, all!

I am novice emacs user and i'm using emacs to write python programs. I
used python-mode.el from http://python-mode.sourceforge.net and was
quite happy. A few days ago i updated emacs to 22.1 and read that the
default python.el mode is updated and recommended for use.
I removed python-mode.el and yes, python.el works good. The only thing
i miss form the old python-mode.el is that when i hit "Enter" on the
line which is indented by itself or opens the new block, emacs
maintains/creates indentation on the new line, so i don't need to hit
"Tab". For ex.:

def foo():
    a = 1 # hit "Enter"
    b = 2 # this line was already indented

if a == b: # hit "Enter"
    # cursor jumps here because i opened the block

When using python.el cursor always jumps to the first column and i
need to hit "Tab" to indent new line properly.

Can someone help me to make my emacs smarter in this area? :)

-- 
Alexander Tsamutali

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-11  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-11  7:35 Indentation in python.el after "Enter" Alexander Tsamutali
2007-07-11  8:24 ` Eli Zaretskii
2007-07-11  9:07   ` Alexander Tsamutali
2007-07-11  9:46     ` Eli Zaretskii
2007-07-11  8:46 ` Ruslan Spivak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).