An Emacs mode for editing Python code

Display current method/class in status bar

Asked by Thomas Güttler on 2013-06-28

If a method is long, I don't see the "def mymethod(self)" line any more. It would be very good if python mode could display "mymethod" or better "MyClass/mymethod" in the status bar.

Is this already possible?

Question information

Language:
English Edit question
Status:
Solved
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas Roehler
Solved:
2013-07-01
Last query:
2013-07-01
Last reply:
2013-06-29
Best Andreas Roehler (a-roehler) said : #1

Does

M-x which-func-mode RET

what you are looking for?

Thomas Güttler (hv-tbz-pariv) said : #3

Thank you, this solved the problem.

To make it available for future sessions I use this:

M-x customize-variable<RET>
which-function-mode

Toggle the value to 'on', then set for the current session and save for future sessions

Andreas Roehler (a-roehler) said : #4

Am 01.07.2013 09:06, schrieb Thomas Güttler:
> Question #231514 on python-mode.el changed:
> https://answers.launchpad.net/python-mode/+question/231514
>
> Status: Answered => Solved

Hallo Thomas,

solltest Du sonst etwas vermissen, feature-requests sind stets willkommen.
Im Bug-tracker mit "whish-list" auszeichnen.

Von mir aus könnte es auch etwas Diskussion über den jeweils richtigen Weg geben.
Vielleicht ist python-mode.el dafür aber auch zu speziell.

Gruß aus Berlin,

Andreas

Andreas Roehler (a-roehler) said : #5

Which should be written in english, sorry for the mistake