Skip to content

Commit 0a895b0

Browse files
committed
fix: handle more nil => unspecified cases
Ref: #793
1 parent ef132b8 commit 0a895b0

19 files changed

+37
-37
lines changed

themes/doom-Iosvkem-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ determine the exact padding."
129129

130130
;;;; Base theme face overrides
131131
(((font-lock-comment-face &override)
132-
:background (if doom-Iosvkem-comment-bg (doom-lighten bg 0.05))
132+
:background (if doom-Iosvkem-comment-bg (doom-lighten bg 0.05) 'unspecified)
133133
:slant 'italic)
134134
((font-lock-function-name-face &override) :weight 'bold)
135135
((font-lock-doc-face &override) :slant 'normal)

themes/doom-acario-light-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ determine the exact padding."
130130
;;;; Base theme face overrides
131131
(((font-lock-comment-face &override)
132132
:slant 'italic
133-
:background (if doom-acario-light-comment-bg (doom-darken bg 0.05)))
133+
:background (if doom-acario-light-comment-bg (doom-darken bg 0.05) 'unspecified))
134134
((line-number &override) :foreground base4)
135135
((line-number-current-line &override) :foreground orange)
136136
(mode-line

themes/doom-ayu-dark-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ determine the exact padding."
171171
(diff-removed :foreground vcs-removed)
172172
(font-lock-comment-face
173173
:foreground comments
174-
:background (if doom-ayu-dark-comment-bg (doom-lighten bg 0.05)))
174+
:background (if doom-ayu-dark-comment-bg (doom-lighten bg 0.05) 'unspecified))
175175
(font-lock-doc-face
176176
:inherit 'font-lock-comment-face
177177
:foreground doc-comments)

themes/doom-ayu-light-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ determine the exact padding."
163163
(((line-number &override) :foreground base5)
164164
((line-number-current-line &override) :foreground fg)
165165
((font-lock-comment-face &override)
166-
:background (if doom-ayu-light-comment-bg (doom-lighten bg 0.05)))
166+
:background (if doom-ayu-light-comment-bg (doom-lighten bg 0.05) 'unspecified))
167167
(mode-line
168168
:background modeline-bg :foreground modeline-fg
169169
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))

themes/doom-badger-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ determine the exact padding."
137137
((line-number &override) :foreground base6)
138138
((line-number-current-line &override)
139139
:foreground fg
140-
:background (if doom-badger-comment-bg (doom-lighten bg 0.05)))
140+
:background (if doom-badger-comment-bg (doom-lighten bg 0.05) 'unspecified))
141141
(mode-line
142142
:background modeline-bg :foreground modeline-fg
143143
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))

themes/doom-city-lights-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ determine the exact padding."
123123
(((line-number &override) :foreground base4)
124124
((line-number-current-line &override) :foreground fg)
125125
((font-lock-comment-face &override)
126-
:background (if doom-city-lights-comment-bg (doom-lighten bg 0.05)))
126+
:background (if doom-city-lights-comment-bg (doom-lighten bg 0.05) 'unspecified))
127127
(mode-line
128128
:background modeline-bg :foreground modeline-fg
129129
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))

themes/doom-fairy-floss-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ determine the exact padding."
123123

124124
;;;; Base theme face overrides
125125
(((font-lock-comment-face &override)
126-
:background (if doom-fairy-floss-comment-bg (doom-lighten bg 0.05)))
126+
:background (if doom-fairy-floss-comment-bg (doom-lighten bg 0.05) 'unspecified))
127127
((font-lock-keyword-face &override ) :slant 'italic)
128128
((hl-line &override) :background base2)
129129
((line-number &override) :foreground base4)

themes/doom-gruvbox-light-theme.el

+18-18
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ background contrast. All other values default to \"medium\"."
154154

155155
;;;; Base theme face overrides
156156
((cursor :background base4)
157-
((font-lock-comment-face &override) :background (if doom-gruvbox-light-comment-bg base0))
157+
((font-lock-comment-face &override) :background (if doom-gruvbox-light-comment-bg base0 'unspecified))
158158
((font-lock-doc-face &override) :slant 'italic)
159159
(isearch :foreground "black" :background orange)
160160
(isearch-fail :foreground fg :background red)
@@ -234,8 +234,8 @@ background contrast. All other values default to \"medium\"."
234234
(doom-dashboard-footer-icon :foreground (doom-darken yellow 0.4))
235235
(doom-dashboard-loaded :foreground yellow)
236236
;;;; diff-mode
237-
(diff-changed :background nil :foreground base6)
238-
(diff-removed :background nil :foreground red)
237+
(diff-changed :foreground base6)
238+
(diff-removed :foreground red)
239239
(diff-indicator-changed :inherit 'diff-changed)
240240
(diff-indicator-added :inherit 'diff-added)
241241
(diff-indicator-removed :inherit 'diff-removed)
@@ -315,16 +315,16 @@ background contrast. All other values default to \"medium\"."
315315
(js2-warning :underline `(:style wave :color ,yellow))
316316
(js2-error :underline `(:style wave :color ,red))
317317
(js2-external-variable :underline `(:style wave :color ,cyan))
318-
(js2-jsdoc-tag :background nil :foreground grey )
319-
(js2-jsdoc-type :background nil :foreground light4)
320-
(js2-jsdoc-value :background nil :foreground light3)
321-
(js2-function-param :background nil :foreground cyan)
322-
(js2-function-call :background nil :foreground blue)
323-
(js2-instance-member :background nil :foreground orange)
324-
(js2-private-member :background nil :foreground yellow)
325-
(js2-private-function-call :background nil :foreground faded-aqua)
326-
(js2-jsdoc-html-tag-name :background nil :foreground light4)
327-
(js2-jsdoc-html-tag-delimiter :background nil :foreground light3)
318+
(js2-jsdoc-tag :foreground grey)
319+
(js2-jsdoc-type :foreground light4)
320+
(js2-jsdoc-value :foreground light3)
321+
(js2-function-param :foreground cyan)
322+
(js2-function-call :foreground blue)
323+
(js2-instance-member :foreground orange)
324+
(js2-private-member :foreground yellow)
325+
(js2-private-function-call :foreground faded-aqua)
326+
(js2-jsdoc-html-tag-name :foreground light4)
327+
(js2-jsdoc-html-tag-delimiter :foreground light3)
328328
;;;; lsp-mode
329329
(lsp-face-highlight-textual :background (doom-blend bg orange 0.9) :foreground base0 :distant-foreground base8)
330330
;;;; lsp-ui
@@ -468,13 +468,13 @@ background contrast. All other values default to \"medium\"."
468468
(rainbox-delimiters-depth-8-face :foreground faded-orange)
469469
(rainbow-delimiters-depth-11-face :foreground delimiter-3)
470470
(rainbox-delimiters-depth-12-face :foreground faded-orange)
471-
(rainbow-delimiters-unmatched-face: :foreground fg :background 'nil)
471+
(rainbow-delimiters-unmatched-face: :foreground fg)
472472
;;;; swiper
473473
(swiper-line-face :background base3 :foreground base0)
474-
(swiper-match-face-1 :inherit 'unspecified :background base1 :foreground base5)
475-
(swiper-match-face-2 :inherit 'unspecified :background orange :foreground base0 :weight 'bold)
474+
(swiper-match-face-1 :inherit 'unspecified :background base1 :foreground base5)
475+
(swiper-match-face-2 :inherit 'unspecified :background orange :foreground base0 :weight 'bold)
476476
(swiper-match-face-3 :inherit 'unspecified :background violet :foreground base1 :weight 'bold)
477-
(swiper-match-face-4 :inherit 'unspecified :background green :foreground base2 :weight 'bold)
477+
(swiper-match-face-4 :inherit 'unspecified :background green :foreground base2 :weight 'bold)
478478
(swiper-background-match-face-1 :inherit 'unspecified :background base2)
479479
(swiper-background-match-face-2 :inherit 'unspecified :background base3)
480480
(swiper-background-match-face-3 :inherit 'unspecified :background base4)
@@ -505,7 +505,7 @@ background contrast. All other values default to \"medium\"."
505505
(whitespace-trailing :foreground red :background base1)
506506
(whitespace-line :foreground red :background base1)
507507
(whitespace-indentation :foreground base4 :background bg)
508-
(whitespace-empty :foreground 'nil :background 'nil))
508+
(whitespace-empty))
509509

510510
;;;; Base theme variable overrides-
511511
())

themes/doom-henna-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ determine the exact padding."
128128

129129
;;;; Base theme face overrides
130130
(((font-lock-comment-face &override)
131-
:background (if doom-henna-comment-bg (doom-lighten bg 0.05)))
131+
:background (if doom-henna-comment-bg (doom-lighten bg 0.05) 'unspecified))
132132
((line-number &override) :foreground base7)
133133
((line-number-current-line &override) :foreground fg)
134134
(mode-line

themes/doom-horizon-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
;;;; Base theme face overrides
122122
(((font-lock-comment-face &override)
123123
:slant 'italic
124-
:background (if doom-horizon-comment-bg (doom-lighten bg 0.03)))
124+
:background (if doom-horizon-comment-bg (doom-lighten bg 0.03) 'unspecified))
125125
(fringe :background bg)
126126
(link :foreground yellow :inherit 'underline)
127127
((line-number &override) :foreground hor-highlight-selected)

themes/doom-nord-light-theme.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ determine the exact padding."
132132

133133
;;;; Base theme face overrides
134134
(((font-lock-comment-face &override)
135-
:background (if doom-nord-light-comment-bg (doom-lighten bg 0.05)))
135+
:background (if doom-nord-light-comment-bg (doom-lighten bg 0.05) 'unspecified))
136136
((line-number &override) :foreground (doom-lighten 'base5 0.2))
137137
((line-number-current-line &override) :foreground base7)
138138
(internal-border :foreground (doom-blend blue bg 0.2) :background (doom-blend blue bg 0.2))
@@ -158,7 +158,7 @@ determine the exact padding."
158158
;;;; elscreen
159159
(elscreen-tab-other-screen-face :background "#353a42" :foreground "#1e2022")
160160
;;;; ivy
161-
(ivy-minibuffer-match-face-1 :background nil :foreground (doom-blend fg bg 0.5) :weight 'light)
161+
(ivy-minibuffer-match-face-1 :foreground (doom-blend fg bg 0.5) :weight 'light)
162162
(ivy-virtual :foreground (doom-blend blue bg 0.8))
163163
;;;; ivy-posframe
164164
(ivy-posframe :background (doom-blend blue bg 0.2))

themes/doom-oceanic-next-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ determine the exact padding."
127127
((line-number &override) :foreground base4)
128128
((line-number-current-line &override) :foreground fg)
129129
((font-lock-comment-face &override)
130-
:background (if doom-oceanic-next-comment-bg (doom-lighten bg 0.05)))
130+
:background (if doom-oceanic-next-comment-bg (doom-lighten bg 0.05) 'unspecified))
131131

132132
(mode-line
133133
:background modeline-bg :foreground modeline-fg

themes/doom-old-hope-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ determine the exact padding."
127127
((line-number &override) :foreground base4)
128128
((line-number-current-line &override) :foreground fg)
129129
((font-lock-comment-face &override)
130-
:background (if doom-old-hope-comment-bg (doom-lighten bg 0.05)))
130+
:background (if doom-old-hope-comment-bg (doom-lighten bg 0.05) 'unspecified))
131131
(mode-line
132132
:background modeline-bg :foreground modeline-fg
133133
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))

themes/doom-opera-light-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ determine the exact padding."
128128

129129
;;;; Base theme face overrides
130130
(((font-lock-comment-face &override)
131-
:background (if doom-opera-light-comment-bg (doom-lighten bg 0.05)))
131+
:background (if doom-opera-light-comment-bg (doom-lighten bg 0.05) 'unspecified))
132132
(lazy-highlight :background (doom-blend bg highlight 0.7) :weight 'bold)
133133
((line-number &override) :foreground fg-alt)
134134
((line-number-current-line &override) :foreground fg)

themes/doom-opera-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ determine the exact padding."
130130
(((line-number &override) :foreground fg-alt)
131131
((line-number-current-line &override) :foreground fg)
132132
((font-lock-comment-face &override)
133-
:background (if doom-opera-comment-bg (doom-lighten bg 0.05)))
133+
:background (if doom-opera-comment-bg (doom-lighten bg 0.05) 'unspecified))
134134
(mode-line
135135
:background modeline-bg :foreground modeline-fg
136136
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))

themes/doom-outrun-electric-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ determine the exact padding."
123123

124124
;;;; Base theme face overrides
125125
(((font-lock-comment-face &override)
126-
:background (if doom-outrun-electric-comment-bg (doom-lighten bg 0.05)))
126+
:background (if doom-outrun-electric-comment-bg (doom-lighten bg 0.05) 'unspecified))
127127
((font-lock-keyword-face &override) :weight 'bold)
128128
((font-lock-constant-face &override) :weight 'bold)
129129
((font-lock-function-name-face &override) :foreground functions)

themes/doom-sourcerer-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Can be an integer to determine the exact padding."
122122
;;;; Base theme face overrides
123123
((cursor :background blue)
124124
((font-lock-comment-face &override)
125-
:background (if doom-sourcerer-comment-bg (doom-darken bg-alt 0.095)))
125+
:background (if doom-sourcerer-comment-bg (doom-darken bg-alt 0.095) 'unspecified))
126126
((line-number &override) :foreground base4)
127127
((line-number-current-line &override) :foreground blue :bold bold)
128128
(mode-line

themes/doom-spacegrey-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ determine the exact padding."
124124

125125
;;;; Base theme face overrides
126126
(((font-lock-comment-face &override)
127-
:background (if doom-spacegrey-comment-bg (doom-lighten bg 0.05)))
127+
:background (if doom-spacegrey-comment-bg (doom-lighten bg 0.05) 'unspecified))
128128
((line-number &override) :foreground base4)
129129
((line-number-current-line &override) :foreground fg)
130130
(mode-line

themes/doom-zenburn-theme.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Can be an integer to determine the exact padding."
147147
(font-lock-builtin-face :foreground fg :weight 'bold)
148148
(font-lock-comment-delimiter-face :foreground green-2)
149149
((font-lock-comment-face &override)
150-
:background (if doom-zenburn-comment-bg (doom-lighten bg 0.05)))
150+
:background (if doom-zenburn-comment-bg (doom-lighten bg 0.05) 'unspecified))
151151
(font-lock-constant-face :foreground green+4)
152152
(font-lock-doc-face :foreground green+2)
153153
(font-lock-type-face :foreground blue-1)

0 commit comments

Comments
 (0)