如何使emacs突出显示超过80个字符的行? [英] How can I make emacs highlight lines that go over 80 chars?

查看:167
本文介绍了如何使emacs突出显示超过80个字符的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有解决方案可以让emacs显示80行列,但是我不希望这种视觉障碍。我只是想让它突出显示一行,如果它超过80个字符。

解决方案

另一个简单的选项是运行 highlight-lines-matching-regexp 表达式 .\ {81\}



每行81个字符或以上的行将突出显示您选择的颜色。


I know there are solutions to making emacs show the 80 line column, but I don't want that sort of visual disturbance. I'd just like to make it highlight a line if it's over 80 characters.

解决方案

Another easy option is to run highlight-lines-matching-regexp on the expression .\{81\}.

Every line with 81 characters or more will be highlighted with the color of your choice.

这篇关于如何使emacs突出显示超过80个字符的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆