【问题标题】:How to underline the scope of parentheses my cursor in, in emacs?如何在emacs中强调我的光标所在的括号范围?
【发布时间】:2013-11-19 07:15:53
【问题描述】:

我该怎么做:

让 |为当前光标位置,“粗体”为“下划线”

何时:(此 | 是(示例文本))

emacs 将:(this | is the (example text))

何时:(这是(示例 | 文本))

emacs 将:(这是 (example | text)

谢谢你们,vim version is here

【问题讨论】:

  • 如果能添加到.emacs就更好了

标签: emacs underline


【解决方案1】:

命令hlt-highlight-enclosing-list 执行您的要求。重复它会突出显示更大的封闭列表。该命令位于库 highlight.el 中。或者你可以只给出一个前缀 arg 以从多级括号的点向外突出显示。

您可以即时指定您想要的任何面孔。它用于突出显示,直到您选择另一个面。 命令hlt-unhighlight-region 撤消区域或整个缓冲区中的突出显示。

Highlight Library

【讨论】:

    【解决方案2】:

    以下是一些名称相似的选项:

    我使用第一个,但我没有尝试过其他的。

    【讨论】:

    • 我不确定你的意思。省略号是省略号;它在哪个文件中几乎没有什么区别。
    • 我的意思是我只想在 .emacs 中放几行来做到这一点,不想添加新的 .el 文件,因为与单个 .el 文件相比,很难维护很多文件。 emacs 再次感谢,您的回答现在运行良好 ;-)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-25
    • 2013-01-08
    • 1970-01-01
    相关资源
    最近更新 更多