@@ -38,6 +38,9 @@ Can be an integer to determine the exact padding."
3838 :group 'doom-one-theme
3939 :type '(choice integer boolean))
4040
41+ (defface doom-one-prog-comments nil
42+ " Face for comments in prog-mode derived buffers."
43+ :group 'doom-one-theme )
4144
4245; ;
4346; ;; Theme definition
@@ -89,7 +92,7 @@ Can be an integer to determine the exact padding."
8992 (vertical-bar (doom-darken base1 0.1 ))
9093 (selection dark-blue)
9194 (builtin magenta)
92- (comments ( if doom-one-brighter-comments dark-cyan base5) )
95+ (comments base5)
9396 (doc-comments (doom-lighten (if doom-one-brighter-comments dark-cyan base5) 0.25 ))
9497 (constants violet)
9598 (functions magenta)
@@ -129,8 +132,9 @@ Can be an integer to determine the exact padding."
129132 ; ;;; Base theme face overrides
130133 (((line-number &override) :foreground base4)
131134 ((line-number-current-line &override) :foreground fg)
132- ((font-lock-comment -face &override)
135+ ((font-lock-doc -face &override)
133136 :background (if doom-one-brighter-comments (doom-lighten bg 0.05 )))
137+ (doom-one-prog-comments :foreground dark-cyan :background (doom-lighten bg 0.05 ))
134138 (mode-line
135139 :background modeline-bg :foreground modeline-fg
136140 :box (if -modeline-pad `(:line-width , -modeline-pad :color , modeline-bg )))
@@ -174,4 +178,10 @@ Can be an integer to determine the exact padding."
174178 ; ;;; Base theme variable overrides-
175179 ())
176180
181+ (defun doom-one-enable-prog-comments ()
182+ (when (and (equal custom-enabled-themes '(doom-one)) doom-one-brighter-comments)
183+ (setq! font-lock-comment-face 'doom-one-prog-comments )))
184+
185+ (add-hook 'prog-mode-hook #'doom-one-enable-prog-comments )
186+
177187; ;; doom-one-theme.el ends here
0 commit comments