Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 python-mode.el,当我尝试缩进注释时,它总是想把它们一直放在左边。我希望它们缩进与代码的其余部分一致。有没有简单的方法来实现这一目标?
最近的 python-mode.el 带有一个可自定义的变量 py-indent-comments t 时,注释行缩进。
从 http://launchpad.net/python-mode获取
还运行 python-mode.el 并且当我标记评论时,它会循环显示缩进级别。你用的是什么版本的emacs?
如果紧跟 # 之后有一个非空格,则编辑获取您描述的行为。我总是在后面放一个空格,但这对我来说听起来像是一个错误。我会在 python-mode.el 列表中询问。