如何禁用Emacs括号内的空格高亮显示?

6
在上面的截图中,可以看到Emacs突出显示括号之间的空格,除非我将光标移动到其中一个位置。
我已经在我的emacs配置中启用了smartparens,但即使我禁用它们,这个问题仍然存在。我也没有启用whitespace-mode。
有什么想法是什么原因导致这种情况?
我的配置相关部分:
(require 'smartparens-config)
(smartparens-global-mode t)
(show-smartparens-global-mode t)

感谢您的选择。

我没有看到smartparens的那种行为,你还激活了哪些其他模式(键入“C-h m”)? - Carl Groner
2个回答

8

很遗憾,Ignacy Moryc 给出的解决方案对我没用,但是下面这个方案有帮助:

(setq sp-highlight-pair-overlay nil)

哇,没想到这么久之后能找到解决方案,谢谢! - CuriOne

3
这看起来像是show-paren-mode 如果你在配置文件中有(show-paren-mode t),你可能想要将其删除。或者你可以将show-paren-style变量值更改为parenthesis
(setq show-paren-style 'parenthesis)

请键入 M-x customize-variable RET show-paren-style RET。 - Andreas Röhler
使用Show Smartparens Mode时,您可能希望禁用Show Paren Mode。 - user355252

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接