gpt4 book ai didi

emacs - emacs:在当前行下划线

转载 作者:行者123 更新时间:2023-12-03 14:36:27 24 4
gpt4 key购买 nike

在vim中,我们可以在dotvim文件中使用“设置光标线”将其打开。有没有办法在emacs中做到这一点?

最佳答案

在您的.emacs中,使用类似以下内容的hl-line-mode自定义脸部:

(global-hl-line-mode 1)
(set-face-attribute hl-line-face nil :underline t)


hl-line-face是一个变量,用于存储 face的名称。 hl-line-mode用于显示当前行。您可以根据自己的喜好自定义 :foreground :background和许多其他属性。检查文档 here

global-hl-line-mode打开以突出显示所有缓冲区中的当前行。如果只希望在某些缓冲区中使用M-x hl-line-mode将其打开。

关于emacs - emacs:在当前行下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2718189/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com