开发者

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. 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.

get it from http://launchpad.net/python-mode


Also running python-mode.el and when I tab a comment it cycles through the indentation levels. What version of emacs are you using?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜