如何禁用Emacs突出显示括号中的空白?

如何禁用Emacs突出显示括号中的空白?,emacs,whitespace,parentheses,Emacs,Whitespace,Parentheses,在上面的屏幕截图中,可以看到Emacs高亮显示括号之间的空白,除非我将光标移到任意一侧 我在emacs配置中启用了smartparens,但即使禁用它们,这个问题仍然存在。 我也没有启用空白模式 你知道这是什么原因吗 我的配置的相关部分: (require 'smartparens-config) (smartparens-global-mode t) (show-smartparens-global-mode t) 谢谢。这看起来像是显示paren模式 如果您的配置文件中有(show par

在上面的屏幕截图中,可以看到Emacs高亮显示括号之间的空白,除非我将光标移到任意一侧

我在emacs配置中启用了smartparens,但即使禁用它们,这个问题仍然存在。 我也没有启用空白模式

你知道这是什么原因吗

我的配置的相关部分:

(require 'smartparens-config)
(smartparens-global-mode t)
(show-smartparens-global-mode t)

谢谢。

这看起来像是
显示paren模式

如果您的配置文件中有
(show paren mode t)
,您可能需要删除它。或者您可以将
show paren样式
变量值更改为
括号

(setq show-paren-style 'parenthesis)

不幸的是,Ignacy Moryc给出的解决方案对我没有帮助,但这一个有帮助:

(setq sp-highlight-pair-overlay nil)

我没有看到这种行为w/
smartparens
,您还有其他哪些活动模式(键入
C-hm
)?分别为。M-x自定义变量RET show paren style RET使用show Smartparens模式,您可能希望禁用show paren模式。哇,没想到这么久之后才找到解决方案,谢谢!