かなり長い関数を使用してPythonコードを編集しているので、上にスクロールせずに関数名をすばやく取得すると便利だと判断しました。私はそれを行うためにこのコードをまとめました。emacs全般、または特に標準のpythonモードに組み込まれているものがありますか?代わりに使用できますか?
(defun python-show-function-name()
"Message the name of the function the point is in"
(interactive)
(save-excursion
(beginning-of-defun)
(message (format "%s" (thing-at-point 'line)))))