Skip to content

Commit

Permalink
Make comment background configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Etenil committed Sep 6, 2024
1 parent ee30a91 commit 7b96e40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion evangelion-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
:kind 'color-scheme
:background-mode 'dark)

(defcustom evangelion--comment-background-enabled t
"Whether to display a background behind comment lines and blocks"
:type 'boolean
:group 'evangelion)

(let*
((class '((class color) (min-colors 256)))
(bg "#201430")
Expand Down Expand Up @@ -50,7 +55,7 @@
;;; font lock default faces
`(font-lock-builtin-face ((,class (:foreground ,green2))))
`(font-lock-comment-face
((,class (:foreground ,fade :background ,hl))))
((,class (:foreground ,fade :background ,(if evangelion--comment-background-enabled hl nil)))))
`(font-lock-constant-face ((,class (:foreground ,orange2))))
`(font-lock-doc-string-face ((,class (:foreground ,lavender))))
`(font-lock-function-name-face ((,class (:foreground ,green2))))
Expand Down

0 comments on commit 7b96e40

Please sign in to comment.