开发者

Is there a way to automate fixing missing parens in Emacs? M-x fix-parens?

updated following Dirk's suggestion

After finding out about emacs' check-parens and show-parens modes in a previous question, the value of a fix-missing-parens mode, a开发者_开发百科 comment raised the point that it would be nice to automate the process of finding and adding missing or extra parens.

Is there a way to automate fixing such mismatched parens?


Mark a region and call M-x indent-region -- that will indent the code which comprises parens (and more).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜