pythonmode 6.0.12返回或传递后缩进

2024-04-25 22:36:34 发布

您现在位置:Python中文网/ 问答频道 /正文

我在emacs中使用python模式。 我已经用了一个月没有问题。在

现在我有一个问题,每当我在类中“return”或“pass”一个函数时,缩进将返回到下一行的开头

例如

class test(object):
    def method1(self):
        return 1
|cursor returns here, cant press tab to indent
    |cursor should be here, tab should allow free indentation

如果我不回来或者“传球”,我就没有问题了。我不知道是什么原因造成的。在

我的.emacs:

^{pr2}$

my.emacs.d包含: 兰姆达-模式.elPython-模式.el-6.0.12自动保存列表


Tags: 函数testselfreturnhereobjectdef模式