[英]Tabbing comments in emacs py-mode?
I'm using python-mode.el, and when I try to indent comments, it always wants to put them all the way to the left. 我正在使用python-mode.el,当我尝试缩进注释时,它总是希望将它们一直放在最左边。 I want them indented in line with the rest of the code.
我希望它们按照其余代码缩进。 Is there an easy way to achieve this?
有没有简单的方法可以做到这一点?
Recent python-mode.el comes with a customizable variable py-indent-comments When t, comment lines are indented. 最近的python-mode.el带有可自定义的变量py-indent-comments,当t时,注释行缩进。
get it from http://launchpad.net/python-mode 从http://launchpad.net/python-mode获取
Also running python-mode.el and when I tab a comment it cycles through the indentation levels. 同样运行python-mode.el,当我点击注释时,它会循环显示缩进级别。 What version of emacs are you using?
您正在使用哪个版本的emacs?
edit getting the behavior you describe if there is a non-space immediately following the #. 编辑 #后面紧跟有空格的情况下,获取您描述的行为。 I always put a space after, but it sounds like a bug to me.
我总是在后面放一个空格,但这听起来像是我的虫子。 I'd ask on the python-mode.el list.
我想问一下python-mode.el列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.