From e11bcb734d03cbd4eac7b6272654646c1ae8ac67 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 28 Mar 2026 13:39:05 -0400 Subject: refactor: Use set-face-attribute Use set-face-attribute instead of custom-set-faces as this can be overridden by Emacs. --- .emacs.d/init.el | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4b6590d..16f4bf0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -49,23 +49,22 @@ (use-package vterm :ensure t) -(custom-set-faces - '(vterm-color-black ((t (:foreground "#e9e9ed" :background "#e9e9ed")))) - '(vterm-color-red ((t (:foreground "#f52a65" :background "#f52a65")))) - '(vterm-color-green ((t (:foreground "#587539" :background "#587539")))) - '(vterm-color-yellow ((t (:foreground "#8c6c3e" :background "#8c6c3e")))) - '(vterm-color-blue ((t (:foreground "#2e7de9" :background "#2e7de9")))) - '(vterm-color-magenta ((t (:foreground "#9854f1" :background "#9854f1")))) - '(vterm-color-cyan ((t (:foreground "#007197" :background "#007197")))) - '(vterm-color-white ((t (:foreground "#6172b0" :background "#6172b0")))) - '(vterm-color-bright-black ((t (:foreground "#a1a6c5" :background "#a1a6c5")))) - '(vterm-color-bright-red ((t (:foreground "#f52a65" :background "#f52a65")))) - '(vterm-color-bright-green ((t (:foreground "#587539" :background "#587539")))) - '(vterm-color-bright-yellow ((t (:foreground "#8c6c3e" :background "#8c6c3e")))) - '(vterm-color-bright-blue ((t (:foreground "#2e7de9" :background "#2e7de9")))) - '(vterm-color-bright-magenta ((t (:foreground "#9854f1" :background "#9854f1")))) - '(vterm-color-bright-cyan ((t (:foreground "#007197" :background "#007197")))) - '(vterm-color-bright-white ((t (:foreground "#3760bf" :background "#3760bf"))))) +(set-face-attribute 'vterm-color-black nil :foreground "#171421" :background "#171421") +(set-face-attribute 'vterm-color-red nil :foreground "#C01C28" :background "#C01C28") +(set-face-attribute 'vterm-color-green nil :foreground "#26A269" :background "#26A269") +(set-face-attribute 'vterm-color-yellow nil :foreground "#A2734C" :background "#A2734C") +(set-face-attribute 'vterm-color-blue nil :foreground "#12488B" :background "#12488B") +(set-face-attribute 'vterm-color-magenta nil :foreground "#A347BA" :background "#A347BA") +(set-face-attribute 'vterm-color-cyan nil :foreground "#2AA1B3" :background "#2AA1B3") +(set-face-attribute 'vterm-color-white nil :foreground "#D0CFCC" :background "#D0CFCC") +(set-face-attribute 'vterm-color-bright-black nil :foreground "#5E5C64" :background "#5E5C64") +(set-face-attribute 'vterm-color-bright-red nil :foreground "#F66151" :background "#F66151") +(set-face-attribute 'vterm-color-bright-green nil :foreground "#33DA7A" :background "#33DA7A") +(set-face-attribute 'vterm-color-bright-yellow nil :foreground "#E9AD0C" :background "#E9AD0C") +(set-face-attribute 'vterm-color-bright-blue nil :foreground "#2A7BDE" :background "#2A7BDE") +(set-face-attribute 'vterm-color-bright-magenta nil :foreground "#C061CB" :background "#C061CB") +(set-face-attribute 'vterm-color-bright-cyan nil :foreground "#33C7DE" :background "#33C7DE") +(set-face-attribute 'vterm-color-bright-white nil :foreground "#FFFFFF" :background "#FFFFFF") (unless (package-installed-p 'magit) (package-install 'magit)) -- cgit v1.2.3