help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentation in python.el after "Enter"


From: Eli Zaretskii
Subject: Re: Indentation in python.el after "Enter"
Date: Wed, 11 Jul 2007 04:24:24 -0400

> Date: Wed, 11 Jul 2007 12:35:11 +0500
> From: "Alexander Tsamutali" <astsmtl@gmail.com>
> 
> 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".

If you press C-j instead of Enter, does python.el do what you want?
If so, all you need to do is bind the command that C-j runs to the
Enter (a.k.a. C-m) key in the python-mode-hook.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]