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

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

问题描述

我知道有一些解决方案可以让 emacs 显示 80 行列,但我不想要那种视觉干扰.如果超过 80 个字符,我只想让它突出显示一行.

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.

推荐答案

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

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

每行 81 个或更多字符将用您选择的颜色突出显示.

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

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

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