From a5dd422adc6cf538f0fba5c638b27f0ed6943830 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Sun, 21 May 2023 00:00:55 +0200 Subject: [PATCH] fixed coloring of show-parens matching solarized theme --- lisp/init-smartparens.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/init-smartparens.el b/lisp/init-smartparens.el index 9b206d5..7de68ea 100644 --- a/lisp/init-smartparens.el +++ b/lisp/init-smartparens.el @@ -201,9 +201,18 @@ _k_: kill (C-k) _s_: split _{_: wrap with { } ;;; Parens config goes here as well -;; display matching braces +;; display matching parens, braces, brackets etc (show-paren-mode 1) +;; show matching parens as white on green +(set-face-background 'show-paren-match "#228b22") +(set-face-foreground 'show-paren-match "#fff") +(set-face-attribute 'show-paren-match nil :weight 'extra-bold) + +;; mismatching ones as white on red +(set-face-background 'show-paren-mismatch "#b22222") +(set-face-foreground 'show-paren-mismatch "#fff") + ;; 'mixed: highlight all if the other paren is invisible ;; 'expression: highlight the whole sexp (setq show-paren-style 'mixed)