开发者

Auto-commenting ending braces in Emacs C-mode

开发者 https://www.devze.com 2023-02-17 11:41 出处:网络
At one point in time I was running Emacs with an option which auto-commented ending braces with t开发者_如何学编程he label for the block they were closing (function name, if (condition), etc). I have

At one point in time I was running Emacs with an option which auto-commented ending braces with t开发者_如何学编程he label for the block they were closing (function name, if (condition), etc). I have since lost said option, and have spent several days searching for it. Is anyone familiar with an option, minor mode, or elisp snippet that accomplishes this task?


Verilog mode does this. I'm not familiar with Lisp, but as far as I understood the code the magic is done in verilog-label-be.

0

精彩评论

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