[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Indentation in python.el after "Enter"
From: |
Alexander Tsamutali |
Subject: |
Indentation in python.el after "Enter" |
Date: |
Wed, 11 Jul 2007 12:35:11 +0500 |
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
- Indentation in python.el after "Enter",
Alexander Tsamutali <=