From 605ecc863bec60547c5611161bc6d0a1f7c52b67 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Mon, 11 Apr 2022 12:54:16 +0200 Subject: [PATCH] Fix theme customizations --- config.el | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/config.el b/config.el index 6affaef..d6d8809 100644 --- a/config.el +++ b/config.el @@ -33,18 +33,19 @@ ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: (setq doom-theme 'doom-one) -(add-hook 'doom-load-theme-hook - (lambda () - (set-face-attribute 'font-lock-constant-face nil :weight 'bold) - (set-face-attribute 'font-lock-function-name-face nil :weight 'bold) - (set-face-attribute 'font-lock-keyword-face nil :weight 'bold) - (set-face-attribute 'font-lock-type-face nil :weight 'bold) - (set-face-attribute 'line-number-current-line nil :inherit - (remq 'hl-line (internal-get-lisp-face-attribute - 'line-number-current-line - :inherit))) - (set-face-attribute 'show-paren-match nil :background nil))) -(after! whitespace (set-face-attribute 'whitespace-line nil :background nil)) +(custom-theme-set-faces! nil + '((font-lock-constant-face + font-lock-function-name-face + font-lock-keyword-face + font-lock-type-face) + :weight bold) + '((show-paren-match + whitespace-line) + :background nil) + `((line-number-current-line) + :inherit ,(remq 'hl-line (internal-get-lisp-face-attribute + 'line-number-current-line + :inherit)))) ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'.