Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 238
CuriOne Avatar asked May 21 '14 17:05

CuriOne


2 Answers

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

(setq sp-highlight-pair-overlay nil)
like image 126
4lex1v Avatar answered Sep 30 '22 19:09

4lex1v


This looks like show-paren-mode

If you have (show-paren-mode t) anywhere in your config file, you might want to remove it. Or you can change the show-paren-style variable value to parenthesis

(setq show-paren-style 'parenthesis)
like image 26
Ignacy Moryc Avatar answered Sep 30 '22 20:09

Ignacy Moryc