Search code examples
emacswhitespaceparentheses

How to disable Emacs highlighting whitespace in parenthesis?


enter image description here

In the above screenshot, it can be seen that Emacs highlights the whitespace between parentheses, unless I move my cursor one place to either side.

I have smartparens enabled in my emacs config, but even if I disable them, this problem still persists. I also don't have whitespace-mode enabled.

Any idea what may be causing this?

The relevant part of my config:

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

Thanks.


Solution

  • Unfortunately the solution given by Ignacy Moryc, didn't help me, but this one helped:

    (setq sp-highlight-pair-overlay nil)