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'.