From 58ec2bc9719520f5cbab058fd025811baf3076a7 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 16 Dec 2024 17:24:52 +0800 Subject: [PATCH] feat: display box styles while matching parens Remove underlines, and display as VSCode --- lisp/init-highlight.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/init-highlight.el b/lisp/init-highlight.el index ae9c5be0b..3b19bf7c9 100644 --- a/lisp/init-highlight.el +++ b/lisp/init-highlight.el @@ -43,7 +43,9 @@ ;; Highlight matching parens (use-package paren :ensure nil - :custom-face (show-paren-match ((t (:underline t)))) + :custom-face + (show-paren-match ((((class color) (background light)) (:box (:line-width (-1 . -1) :color "gray70"))) + (((class color) (background dark)) (:box (:line-width (-1 . -1) :color "gray50"))))) :hook (after-init . show-paren-mode) :init (setq show-paren-when-point-inside-paren t show-paren-when-point-in-periphery t)