From 7b96e40fccc3fe3cabd92dfb445b098fb8f5609d Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Fri, 6 Sep 2024 21:17:52 +0100 Subject: [PATCH] Make comment background configurable --- evangelion-theme.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/evangelion-theme.el b/evangelion-theme.el index 5dc77d1..3f0bfd4 100644 --- a/evangelion-theme.el +++ b/evangelion-theme.el @@ -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") @@ -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))))