Skip to content

Commit adee1e5

Browse files
committed
Add better highlighting for show-paren mode
show-paren-mode includes two faces show-paren-match and show-paren-mismatch. With this commit, show-paren-mismatch is highlighted with a red background and black foreground while show-paren-match is highlighted using uses a dark gray20 background either on the text or throughout the body depending on whether show-paren-style is parenthesis, expression or mixed.
1 parent 6b98d9e commit adee1e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*~
2+
*.swp

eltbus-theme.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@
133133
;; speedbar-selected-face
134134
;; speedbar-separator-face
135135
;; speedbar-tag-face
136-
`(show-paren-match ((t (,@default-color ,@fmt-rev))))
137-
`(show-paren-mismatch ((t (,@err-like ,@fmt-rev))))
136+
`(show-paren-match ((t (:background "gray10"
137+
,@fmt-rev))))
138+
`(show-paren-mismatch ((t (:background "red" :foreground "black" ,@fmt-rev))))
138139
;; widget-field
139140
;;widget-single-line
140141
`(flymake-errline ((t (,@err-like ,@fmt-bld))))

0 commit comments

Comments
 (0)