fix circular face inheritace bug from doom-themes

This commit is contained in:
2025-11-27 11:26:00 +13:00
parent 5b224b0a93
commit b0d00a5fad

View File

@@ -65,16 +65,22 @@
** Theme ** Theme
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package doom-themes
:ensure t
:defer t
:config :config
;; Best dark themes for focus: ;; Fix circular face inheritance for Gnus faces
;; doom-one, doom-dracula, doom-tokyo-night, doom-palenight ;; This prevents "Face inheritance results in inheritance cycle" errors
(load-theme 'doom-tokyo-night t) ;; when creating new frames with emacsclient -c on pgtk builds
;; See: https://github.com/doomemacs/themes/issues/875
(setcdr (assoc 'gnus-group-news-low-empty doom-themes-base-faces)
'(:inherit 'gnus-group-mail-1-empty :weight 'normal)))
;; Enable flashing mode-line on errors ;; Load theme immediately (this triggers doom-themes to load with the fix applied)
(doom-themes-visual-bell-config) (load-theme 'doom-tokyo-night t)
;; Corrects org-mode's native fontification ;; Enable doom-themes integrations
(doom-themes-org-config)) (doom-themes-visual-bell-config)
(doom-themes-org-config)
;; All-the-icons for visual indicators ;; All-the-icons for visual indicators
;;(use-package all-the-icons ;;(use-package all-the-icons
@@ -82,7 +88,6 @@
(use-package nerd-icons (use-package nerd-icons
:ensure t) :ensure t)
#+END_SRC #+END_SRC
** Modeline ** Modeline
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-modeline (use-package doom-modeline