开发者

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

开发者 https://www.devze.com 2023-01-28 15:04 出处:网络
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

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

精彩评论

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